@@ -191,7 +191,7 @@ def _run_interface(self, runtime):
191
191
columns = ['trans_x' , 'trans_y' , 'trans_z' , 'rot_x' , 'rot_y' , 'rot_z' ],
192
192
)
193
193
194
- params .to_csv (self ._results ['out_file' ], sep = '\t ' , index = False )
194
+ params .to_csv (self ._results ['out_file' ], sep = '\t ' , index = False , na_rep = 'n/a' )
195
195
196
196
return runtime
197
197
@@ -224,7 +224,7 @@ def _run_interface(self, runtime):
224
224
225
225
fd = pd .DataFrame (diff .abs ().sum (axis = 1 , skipna = False ), columns = ['FramewiseDisplacement' ])
226
226
227
- fd .to_csv (self ._results ['out_file' ], sep = '\t ' , index = False )
227
+ fd .to_csv (self ._results ['out_file' ], sep = '\t ' , index = False , na_rep = 'n/a' )
228
228
229
229
return runtime
230
230
@@ -252,7 +252,9 @@ def _run_interface(self, runtime):
252
252
)
253
253
254
254
metadata = pd .read_csv (self .inputs .in_file , sep = '\t ' )
255
- metadata [metadata .retained ].to_csv (self ._results ['out_file' ], sep = '\t ' , index = False )
255
+ metadata [metadata .retained ].to_csv (
256
+ self ._results ['out_file' ], sep = '\t ' , index = False , na_rep = 'n/a'
257
+ )
256
258
257
259
return runtime
258
260
@@ -315,13 +317,15 @@ def _run_interface(self, runtime):
315
317
final_components = components .rename (columns = dict (zip (c_orig , c_new , strict = False )))
316
318
final_components .rename (columns = dict (zip (w_orig , w_new , strict = False )), inplace = True )
317
319
final_components .rename (columns = dict (zip (a_orig , a_new , strict = False )), inplace = True )
318
- final_components .to_csv (self ._results ['components_file' ], sep = '\t ' , index = False )
320
+ final_components .to_csv (
321
+ self ._results ['components_file' ], sep = '\t ' , index = False , na_rep = 'n/a'
322
+ )
319
323
320
324
metadata .loc [c_comp_cor .index , 'component' ] = c_new
321
325
metadata .loc [w_comp_cor .index , 'component' ] = w_new
322
326
metadata .loc [a_comp_cor .index , 'component' ] = a_new
323
327
324
- metadata .to_csv (self ._results ['metadata_file' ], sep = '\t ' , index = False )
328
+ metadata .to_csv (self ._results ['metadata_file' ], sep = '\t ' , index = False , na_rep = 'n/a' )
325
329
326
330
return runtime
327
331
0 commit comments