@@ -171,7 +171,7 @@ def populate_aggregated_jsons(path):
171
171
act = "Generating"
172
172
lgr .debug ("%s %s" , act , task_file )
173
173
fields .update (placeholders )
174
- save_json (task_file , fields , indent = 2 , sort_keys = True , pretty = True )
174
+ save_json (task_file , fields , sort_keys = True , pretty = True )
175
175
176
176
177
177
def tuneup_bids_json_files (json_files ):
@@ -193,7 +193,7 @@ def tuneup_bids_json_files(json_files):
193
193
# Let's hope no word 'Date' comes within a study name or smth like
194
194
# that
195
195
raise ValueError ("There must be no dates in .json sidecar" )
196
- save_json (jsonfile , json_ , indent = 2 )
196
+ save_json (jsonfile , json_ )
197
197
198
198
# Load the beast
199
199
seqtype = op .basename (op .dirname (jsonfile ))
@@ -223,7 +223,7 @@ def tuneup_bids_json_files(json_files):
223
223
was_readonly = is_readonly (json_phasediffname )
224
224
if was_readonly :
225
225
set_readonly (json_phasediffname , False )
226
- save_json (json_phasediffname , json_ , indent = 2 )
226
+ save_json (json_phasediffname , json_ )
227
227
if was_readonly :
228
228
set_readonly (json_phasediffname )
229
229
@@ -259,8 +259,7 @@ def add_participant_record(studydir, subject, age, sex):
259
259
("Description" , "(TODO: adjust - by default everyone is in "
260
260
"control group)" )])),
261
261
]),
262
- sort_keys = False ,
263
- indent = 2 )
262
+ sort_keys = False )
264
263
# Add a new participant
265
264
with open (participants_tsv , 'a' ) as f :
266
265
f .write (
@@ -373,8 +372,7 @@ def add_rows_to_scans_keys_file(fn, newrows):
373
372
("LongName" , "Random string" ),
374
373
("Description" , "md5 hash of UIDs" )])),
375
374
]),
376
- sort_keys = False ,
377
- indent = 2 )
375
+ sort_keys = False )
378
376
379
377
header = ['filename' , 'acq_time' , 'operator' , 'randstr' ]
380
378
# prepare all the data rows
0 commit comments