Skip to content

Commit 2e836ec

Browse files
authored
Merge pull request #45 from TrevorLeeCline/rm_zero_pad
remove 'zero_pad'
2 parents 6997686 + 5f58abc commit 2e836ec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

xnat_downloader/cli/run.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def parse_json(json_file):
3636
Directory to construct the BIDS structure
3737
project: string
3838
project ID on xnat that you wish to download from
39-
zero_pad: int
40-
(DEPRECATED), use num_digits instead
4139
num_digits: int
4240
Explicitly set how many digits you want your subject label to have
4341
(only useful for entirely numbered subject labels)
@@ -68,7 +66,7 @@ def parse_json(json_file):
6866
input_dict = json.load(json_input)
6967
# print(str(input_dict))
7068
mandatory_keys = ['destination', 'project', 'server']
71-
optional_keys = ['zero_pad', 'session_labels', 'subjects', 'scan_labels',
69+
optional_keys = ['session_labels', 'subjects', 'scan_labels',
7270
'scan_dict', 'num_digits', 'sub_dict', 'sub_label_prefix']
7371
total_keys = mandatory_keys+optional_keys
7472
# print("total_keys: "+str(total_keys))
@@ -597,7 +595,6 @@ def main():
597595
session_labels = input_dict.get('session_labels', None)
598596
scan_labels = input_dict.get('scan_labels', None)
599597
server = input_dict.get('server', None)
600-
bids_num_len = input_dict.get('zero_pad', False) # DEPRECATED
601598
bids_num_len = input_dict.get('num_digits', False)
602599
dest = input_dict.get('destination', None)
603600
scan_repl_dict = input_dict.get('scan_dict', None)

0 commit comments

Comments
 (0)