Skip to content

Commit 520f78e

Browse files
committed
tsv, not csv
1 parent 9b1ae5d commit 520f78e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

nigsp/blocks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ def export_metric(scgraph, outext, outprefix):
7272
except ImportError:
7373
LGR.warning(
7474
"The necessary library for nifti export (nibabel) "
75-
"was not found. Exporting metrics in CSV format instead."
75+
"was not found. Exporting metrics in TSV format instead."
7676
)
77-
outext = ".csv"
77+
outext = ".tsv.gz"
7878
if scgraph.img is None:
7979
LGR.warning(
8080
"A necessary atlas nifti image was not found. "
81-
"Exporting metrics in CSV format instead."
81+
"Exporting metrics in TSV format instead."
8282
)
83-
outext = ".csv"
83+
outext = ".tsv.gz"
8484

8585
if scgraph.sdi is not None:
8686
if outext in io.EXT_NIFTI:

nigsp/tests/test_blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ def test_export_metrics_nifti(sc_mtx, atlas, sdi, testdir):
7070
scgraph = SCGraph(mtx, ts, atlas=atlas_in, sdi=sdi_in)
7171
blocks.export_metric(scgraph, ".nii.gz", join(testdir, "molly_"))
7272

73-
assert isfile(join(testdir, "molly_sdi.csv"))
73+
assert isfile(join(testdir, "molly_sdi.tsv"))
7474

7575
sys.modules["nibabel"] = None
7676
scgraph = SCGraph(mtx, ts, atlas=atlas_in, img=img, sdi=sdi_in)
7777
blocks.export_metric(scgraph, ".nii.gz", join(testdir, "molly_"))
7878
sys.modules["nibabel"] = nibabel
7979

80-
assert isfile(join(testdir, "molly_sdi.csv"))
80+
assert isfile(join(testdir, "molly_sdi.tsv"))
8181
shutil.rmtree(testdir)
8282
remove(sc_mtx)
8383
remove(atlas)

0 commit comments

Comments
 (0)