Skip to content

Commit

Permalink
enforce threshold to be a positive float
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Nov 16, 2018
1 parent 3eaead7 commit 526b697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion birdvoxdetect/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def parse_args(args):
help='Export detected events as audio clips in WAV format.'
'The default value is false.')

parser.add_argument('--threshold', '-t', default=50,
parser.add_argument('--threshold', '-t', type=positive_float, default=50,
help='Detection threshold, between 10 and 90. The default value is 50.'
'Greater values lead to higher precision at the expense of a lower recall.')

Expand Down

0 comments on commit 526b697

Please sign in to comment.