-
Notifications
You must be signed in to change notification settings - Fork 6
Fix: skip NA values in intensities in transform_ibaq #116
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
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
Pull Request Overview
This PR fixes a bug in the transform_ibaq
function by adding proper handling for NA/NaN values in the intensities column to prevent transformation errors.
- Adds NA value detection with warning logging
- Removes rows containing NaN intensities before transformation
- Prevents downstream errors during DataFrame processing
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
PR Type
Bug fix
Description
Add NA value handling in
transform_ibaq
functionDrop rows with NaN intensities before transformation
Add warning log for NA detection
Diagram Walkthrough
File Walkthrough
tools.py
Add NA handling in transform_ibaq
quantmsio/operate/tools.py