Skip to content

Commit

Permalink
Fix format of bbox_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaRenauld committed Nov 11, 2022
1 parent b721fd8 commit b1f9e46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions scilpy/io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,12 @@ def add_verbose_arg(parser):


def add_bbox_arg(parser):
parser.add_argument('--bbox_check', type=bool, default=True,
help='Set to false to ignore validity of the bounding '
parser.add_argument('--no_bbox_check', dest='bbox_check',
action='store_false',
help='Activate to ignore validity of the bounding '
'box during loading / saving of \n'
'tractograms (ignores the presence of invalid '
'streamlines). Default: True.')
'streamlines).')


def add_sh_basis_args(parser, mandatory=False):
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/test_score_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def test_score_bundles(script_runner):
json.dump(json_contents, f)

ret = script_runner.run('scil_score_bundles.py',
"config_file.json", "./", '--ignore_invalid')
"config_file.json", "./", '--no_bbox_check')

assert ret.success

0 comments on commit b1f9e46

Please sign in to comment.