Skip to content

Handle null or empty exp_spectrum in calculations#582

Merged
Bujee415 merged 1 commit intomasterfrom
bugfix/eieio-ms-charcterization
Jun 13, 2025
Merged

Handle null or empty exp_spectrum in calculations#582
Bujee415 merged 1 commit intomasterfrom
bugfix/eieio-ms-charcterization

Conversation

@YukiMatsuzawa
Copy link
Copy Markdown
Contributor

Handle null or empty exp_spectrum in calculations

Updated the calculation of minimumPeakIntensity to safely handle cases where exp_spectrum may be null or empty. Utilized the null-conditional operator and DefaultIfEmpty() to ensure a default value of 0 is returned, preventing potential exceptions.

Updated the calculation of minimumPeakIntensity to safely handle cases where exp_spectrum may be null or empty. Utilized the null-conditional operator and DefaultIfEmpty() to ensure a default value of 0 is returned, preventing potential exceptions.
@YukiMatsuzawa YukiMatsuzawa requested a review from Bujee415 June 13, 2025 06:52
@Bujee415 Bujee415 merged commit 8552ddc into master Jun 13, 2025
9 checks passed
@Bujee415 Bujee415 deleted the bugfix/eieio-ms-charcterization branch June 13, 2025 08:10
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