Skip to content

Commit 75962eb

Browse files
committed
Minor improvement to the help-text
1 parent 7d31533 commit 75962eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bidscoiner/dicomsort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def sortsession(sessionfolder, pattern):
1414
Sorts dicomfiles into (3-digit) SeriesNumber-SeriesDescription subfolders (e.g. '003-T1MPRAGE')
1515
1616
:param str sessionfolder: The name of the folder that contains the dicom files
17-
:param str pattern: The regular expression pattern used in re.match() to select the dicom files
17+
:param str pattern: The regular expression pattern used in re.match(pattern, dicomfile) to select the dicom files
1818
:return: Nothing
1919
:rtype: NoneType
2020
"""
@@ -82,7 +82,7 @@ def sortsessions(rawfolder, subjectid='', sessionid='', pattern='.*\.(IMA|dcm)$'
8282
parser.add_argument('rawfolder', help='The root folder containing the source [sub/][ses/]dicomfiles')
8383
parser.add_argument('--subjectid', help='The prefix of the subject folders in rawfolder (empty value means no recursive search)', default='')
8484
parser.add_argument('--sessionid', help='The prefix of the session folders in the subject folder (empty value means no recursive search)', default='')
85-
parser.add_argument('--pattern', help='The regular expression pattern used in re.match() to select the dicom files', default='.*\.(IMA|dcm)$')
85+
parser.add_argument('--pattern', help='The regular expression pattern used in re.match(pattern, dicomfile) to select the dicom files', default='.*\.(IMA|dcm)$')
8686
args = parser.parse_args()
8787

8888
sortsessions(rawfolder=args.rawfolder, subjectid=args.subjectid, sessionid=args.sessionid, pattern=args.pattern)

0 commit comments

Comments
 (0)