-
Notifications
You must be signed in to change notification settings - Fork 72
Fix broken example code #459
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
Conversation
WalkthroughThis pull request updates documentation and examples. It removes the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User/System
participant FC as FilteringConsumer
participant IC as Internal Consumer
U->>FC: Call consumeSpectrum(spectrum)
FC->>FC: Print spectrum size
alt spectrum.size ≥ min_spec_size
FC->>IC: Forward spectrum for further processing
else spectrum.size < min_spec_size
FC-->>FC: Discard spectrum
end
Possibly related PRs
Suggested reviewers
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
docs/source/user_guide/quantitative_data.rst (1)
29-31: Refine FeatureFinder Formatting.
The previous:py:class:directive has been removed from the reference to the FeatureFinder algorithm. The simple backticked link now reads as a plain name linked to the next chapter. Confirm that this format aligns with your overall documentation style and that readers can still easily identify the reference.docs/source/user_guide/reading_raw_ms_data.rst (1)
155-183: Introduce and Validate FilteringConsumer Class.
The newFilteringConsumerclass implementation is clear and demonstrates how to filter spectra by their peak count. The class takes an internal consumer and amin_spec_sizeparameter, and theconsumeSpectrummethod prints the spectrum size and conditionally forwards the spectrum.
A couple of minor suggestions:
- Consider using a logging framework (or at least a configurable verbosity flag) instead of plain
- Ensure that the indentation is consistent when users copy this example into their projects.
Overall, the implementation is effective for documentation purposes.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
docs/source/user_guide/quantitative_data.rst(1 hunks)docs/source/user_guide/reading_raw_ms_data.rst(2 hunks)docs/source/_static/custom.css(1 hunks)docs/source/user_guide/installation.rst(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: build-test
- GitHub Check: build-test
🔇 Additional comments (3)
docs/source/_static/custom.css (1)
71-74: Update CSS color for parameter names.
The color property for the.sig-param > span.n:nth-child(1) > .preselector has been changed from the previous darker shade to#3f87d3, which should enhance readability. Please verify that this new color meets the accessibility and branding guidelines.docs/source/user_guide/installation.rst (1)
31-35: Expand Supported Python Versions.
The documentation now lists Python 3.9, 3.10, 3.11, 3.12, and 3.13 as supported versions. This update improves compatibility with newer Python releases. Please ensure that any dependent instructions or installation commands elsewhere in the docs are also updated accordingly.docs/source/user_guide/reading_raw_ms_data.rst (1)
184-192: Demonstration of FilteringConsumer Usage.
The subsequent code instantiates aFilteringConsumerwith a minimum peak size of 11 and uses it in conjunction withPlainMSDataWritingConsumerto filter and write out the MS data. This example effectively illustrates the filtering mechanism. Please verify that the example’s input and output file names (e.g.,"test.mzML"and"out.mzML") are consistent with your documentation standards.
|
I recall that we changed some code to output to make it work again in notebooks and binder. This is now working ? |
|
yes it works, otherwise it would not pass CI :) |
|
Also in binder? |
fixes #397
Summary by CodeRabbit
Documentation
Style