Skip to content

Commit

Permalink
Fix left/right in code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Jul 13, 2023
1 parent 2ef1952 commit cc6ff05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nums2mask/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.0'
__version__ = '2.0.1'
2 changes: 1 addition & 1 deletion nums2mask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
parser = ArgumentParser(description='Create brain mask from segmentation volume')
parser.add_argument('-m', '--mask', required=True, type=str,
help='List of output file names and voxel values to include,'
'e.g. "wm_left.mnc:4,160 wm_right.mnc:5,161"')
'e.g. "wm_left.mnc:5,161 wm_right.mnc:4,160"')
parser.add_argument('-p', '--pattern', default='**/*.mnc',
help='pattern for file names to include')

Expand Down
2 changes: 1 addition & 1 deletion nums2mask/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def _csv2list(s: str) -> list[int]:
raise ValueError(f'{s} is not a CSV of integers')


assert parse_mask_spec('lh.wm.mnc:160,4 rh.wm.mnc:161,5') == {'lh.wm.mnc': [160, 4], 'rh.wm.mnc': [161, 5]}
assert parse_mask_spec('lh.wm.mnc:161,5 rh.wm.mnc:160,4') == {'lh.wm.mnc': [161, 5], 'rh.wm.mnc': [160, 4]}
assert parse_mask_spec('161,5') == {'': [161, 5]}

0 comments on commit cc6ff05

Please sign in to comment.