Skip to content

Commit

Permalink
Add error check for num_bins
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-l-kong committed Nov 5, 2024
1 parent 3b14661 commit d02340d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/maldi_tools/load_maldi_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ def extract_maldi_run_spectra(
Tuple[pandas.DataFrame, pandas.DataFrame:
Two DataFrames containing the spectra and poslog info across all runs respectively
"""
if num_bins <= 0:
raise ValueError("num_bins specified must be positive")
if num_workers <= 0:
raise ValueError("num_workers specified must be positive")

Expand Down

0 comments on commit d02340d

Please sign in to comment.