Skip to content

Commit

Permalink
allow zero in parse kraken
Browse files Browse the repository at this point in the history
  • Loading branch information
WhalleyT committed Dec 11, 2024
1 parent 14a95f0 commit 3859c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/parse_kraken_report2.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ def process_requirements(args):
sys.exit('ERROR: output file %s must end with suffix .json' %out_file)

# check if pct_threshold and num_threshold are positive floar/int
if not (isinstance(num_threshold, int) & (num_threshold > 0)):
if not (isinstance(num_threshold, int) & (num_threshold >= 0)):
sys.exit('ERROR: %d is not a positive integer' %(num_threshold))
if not (isinstance(pct_threshold, float) & (pct_threshold > 0)):
if not (isinstance(pct_threshold, float) & (pct_threshold >= 0)):
sys.exit('ERROR: %f is not a positive number' %(pct_threshold))

# check if pct_threshold is more than 100
Expand Down

0 comments on commit 3859c02

Please sign in to comment.