From cc6ff05a467801e5edd03cc562cdbea5ad4d0b51 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Thu, 13 Jul 2023 05:54:03 -0400 Subject: [PATCH] Fix left/right in code examples --- nums2mask/__init__.py | 2 +- nums2mask/app.py | 2 +- nums2mask/spec.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nums2mask/__init__.py b/nums2mask/__init__.py index afced14..3f39079 100644 --- a/nums2mask/__init__.py +++ b/nums2mask/__init__.py @@ -1 +1 @@ -__version__ = '2.0.0' +__version__ = '2.0.1' diff --git a/nums2mask/app.py b/nums2mask/app.py index 04775f0..2a5bf86 100755 --- a/nums2mask/app.py +++ b/nums2mask/app.py @@ -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') diff --git a/nums2mask/spec.py b/nums2mask/spec.py index b60faa9..370269c 100644 --- a/nums2mask/spec.py +++ b/nums2mask/spec.py @@ -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]}