@@ -459,7 +459,7 @@ def test_tsv_merge_no_datalad(tmp_path):
459459 summary_df .loc [fa_nan_dwi_row , "MergeInto" ] = summary_df .ParamGroup [complete_dwi_row ]
460460
461461 valid_tsv_file = tsv_prefix + "_valid_summary.tsv"
462- summary_df .to_csv (valid_tsv_file , sep = "\t " , index = False )
462+ summary_df .to_csv (valid_tsv_file , sep = "\t " , index = False , na_rep = "n/a" )
463463
464464 # about to apply merges!
465465
@@ -472,7 +472,7 @@ def test_tsv_merge_no_datalad(tmp_path):
472472 complete_dwi_row
473473 ]
474474 invalid_tsv_file = tsv_prefix + "_invalid_summary.tsv"
475- summary_df .to_csv (invalid_tsv_file , sep = "\t " , index = False )
475+ summary_df .to_csv (invalid_tsv_file , sep = "\t " , index = False , na_rep = "n/a" )
476476
477477 with pytest .raises (Exception ):
478478 bod .apply_tsv_changes (
@@ -572,7 +572,7 @@ def test_tsv_merge_changes(tmp_path):
572572 summary_df .loc [fa_nan_dwi_row , "MergeInto" ] = summary_df .ParamGroup [complete_dwi_row ]
573573
574574 valid_tsv_file = tsv_prefix + "_valid_summary.tsv"
575- summary_df .to_csv (valid_tsv_file , sep = "\t " , index = False )
575+ summary_df .to_csv (valid_tsv_file , sep = "\t " , index = False , na_rep = "n/a" )
576576
577577 # about to merge
578578 bod .apply_tsv_changes (valid_tsv_file , original_files_tsv , str (tmp_path / "ok_modified" ))
@@ -584,7 +584,7 @@ def test_tsv_merge_changes(tmp_path):
584584 complete_dwi_row
585585 ]
586586 invalid_tsv_file = tsv_prefix + "_invalid_summary.tsv"
587- summary_df .to_csv (invalid_tsv_file , sep = "\t " , index = False )
587+ summary_df .to_csv (invalid_tsv_file , sep = "\t " , index = False , na_rep = "n/a" )
588588
589589 with pytest .raises (Exception ):
590590 bod .apply_tsv_changes (
0 commit comments