[2/5] Refactor: make the fragment parsing helpers private - #435
Open
GeorgWa wants to merge 1 commit into
Open
Conversation
`parse_fragment`, `fill_in_indices` and `calculate_fragment_numbers` only serve `flatten_fragments`, and nothing in alphabase, alphadia or peptdeep calls them. A leading underscore states that, and frees their signatures for the refactoring that follows. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
mschwoer
reviewed
Sep 1, 2026
| number_of_fragment_types: int, | ||
| ) -> Tuple[np.ndarray, np.ndarray, np.ndarray]: | ||
| """ | ||
| Parse fragments to get fragment numbers, fragment positions and not top k excluded indices in one hit |
Contributor
There was a problem hiding this comment.
"fragment numbers" is kinda ambigous.. is this counts? or enumeration? not sure if it should be renamed now (depends on the radius of this change), but at last a comment would help :-)
Collaborator
|
PS: I'll be creating a PR soon to optimize the translation modules ( I think it will be better to reuse the much more optimized helpers here instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pure refactor. Rename only, no functional change.
parse_fragment,fill_in_indicesandcalculate_fragment_numbersonly serveflatten_fragments, and nothing in alphabase, alphadia or peptdeep calls them. A leading underscore states that, and frees their signatures for the refactoring that follows.Stacked on #434. Splitting #429.
🤖 Generated with Claude Code