Skip to content

Commit 91a011e

Browse files
committed
fix: read file with json.load
1 parent 3e68e98 commit 91a011e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/fmri_ants_openfmri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def get_subjectinfo(subject_id, base_dir, task_id, model_id):
568568
if os.path.exists(json_info):
569569
import json
570570
with open(json_info, 'rt') as fp:
571-
data = json.loads(fp)
571+
data = json.load(fp)
572572
TR = data['global']['const']['RepetitionTime']/1000.
573573
else:
574574
task_scan_key = os.path.join(base_dir, subject_id, 'BOLD',

0 commit comments

Comments
 (0)