Skip to content
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

Refactor chromatogram logic and reorganize namespaces #473

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

YukiMatsuzawa
Copy link
Contributor

Refactor chromatogram logic and reorganize namespaces

Refactored logic for finding scan IDs in the chromatogram:

  • Removed chromBegin and chromTop variables.
  • Used LowerBound and UpperBound methods to find indices for left, right, and top.
  • Simplified loops for finding minimum intensity on left and right sides.
  • Set properties ScanLeft, ScanRight, ScanTop, HeightLeftFromZero, HeightRightFromZero, and HeightFromZero directly after loops.

Improved code readability and potentially performance by reducing conditional checks and simplifying loops.

Refactored logic for finding scan IDs in the chromatogram:
- Removed `chromBegin` and `chromTop` variables.
- Used `LowerBound` and `UpperBound` methods to find indices for `left`, `right`, and `top`.
- Simplified loops for finding minimum intensity on left and right sides.
- Set properties `ScanLeft`, `ScanRight`, `ScanTop`, `HeightLeftFromZero`, `HeightRightFromZero`, and `HeightFromZero` directly after loops.

Improved code readability and potentially performance by reducing conditional checks and simplifying loops.
@Bujee415 Bujee415 merged commit 3fff76c into master Dec 11, 2024
9 checks passed
@YukiMatsuzawa YukiMatsuzawa deleted the bugfix/eic-curation branch December 11, 2024 07:25
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