Skip to content

Conversation

@mschwoer
Copy link
Collaborator

@mschwoer mschwoer commented Jun 27, 2025

Fix strict linting issues for the fragcomp package.

related to MannLabs/alphatims#299

Comment on lines +59 to +60
rt_tol_seconds: float,
mass_tol_ppm: float,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed double defaults

@mschwoer mschwoer requested a review from GeorgWa June 27, 2025 14:23
Copy link
Collaborator

@GeorgWa GeorgWa left a 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(
Copy link
Collaborator

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

Copy link
Collaborator Author

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

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) thread-parallelizes

Base automatically changed from split_fragcomp to main July 1, 2025 08:52
@mschwoer mschwoer merged commit 61c775f into main Jul 1, 2025
6 checks passed
@mschwoer mschwoer deleted the lint_fragcomp branch July 1, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants