-
Notifications
You must be signed in to change notification settings - Fork 12
lint_fragcomp #586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lint_fragcomp #586
Conversation
| rt_tol_seconds: float, | ||
| mass_tol_ppm: float, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed double defaults
GeorgWa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| psm_df = fragment_competition(psm_df, frag_df, cycle) | ||
|
|
||
| assert len(psm_df) == 4 | ||
| pd.testing.assert_frame_equal( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a bit nicer than just checking for the length
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a bit nicer" in the sense "actually a test"? :-D
alphadia/fragcomp/fragcomp.py
Outdated
| thread_idx: int | ||
| The thread index. Each thread will handle one dia window. | ||
| The function will be wrapped in a pjit decorator and will be parallelized over this index. | ||
| The pjit decorator effectively changes the type of this argument to `np.ndarray` and threa-parallelizes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nit) thread-parallelizes
Fix strict linting issues for the fragcomp package.
related to MannLabs/alphatims#299