Skip to content

Commit

Permalink
Fixing issue #41
Browse files Browse the repository at this point in the history
  • Loading branch information
NadiaBlostein committed Aug 7, 2023
1 parent 1417326 commit cd8b936
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion configuration_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"data_type": "anat",
"contrast": "t1",
"suffix_image": "_T1w",
"first_disc": "1",
"last_disc": "26"
}
2 changes: 1 addition & 1 deletion preprocess_normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def read_dataset(fname_json = 'configuration.json', path_data = './'):
with open(fname_json) as data_file: dataset_info = json.load(data_file)

error = ''
key_list = ["path_data", "include-list", "data_type", "contrast", "suffix_image", "first_disc", "last_disc"]
key_list = ["path_data", "include-list", "data_type", "contrast", "suffix_image", "last_disc"]

for key in key_list:
if key not in dataset_info.keys(): error += 'Dataset configuration file ' + fname_json + ' must contain the field ' + key + '.\n'
Expand Down

0 comments on commit cd8b936

Please sign in to comment.