Skip to content

Commit 71a1931

Browse files
committed
Ensure tests write tab-separated other.csv files
1 parent 754a474 commit 71a1931

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

testsuite/pytests/sli2py_mpi/test_all_to_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ def test_all_to_all(N):
4040
nest.Connect(nrns, nrns, "all_to_all")
4141

4242
conns = nest.GetConnections().get(output="pandas").drop(labels=["target_thread", "port"], axis=1)
43-
conns.to_csv(OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False) # noqa: F821
43+
conns.to_csv(OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False, sep="\t") # noqa: F821

testsuite/pytests/sli2py_mpi/test_connect_array_mpi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ def gids_to_delays(sgids, tgids):
109109
assert set(actual_weights) <= set(expected_weights)
110110
assert set(actual_delays) <= set(expected_delays)
111111

112-
conns.to_csv(OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False) # noqa: F821
112+
conns.to_csv(OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False, sep="\t") # noqa: F821

testsuite/pytests/sli2py_mpi/test_issue_1957.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_issue_1957():
4747
if pre_conns:
4848
# need to do this here, Disconnect invalidates pre_conns
4949
df = pd.DataFrame.from_dict(pre_conns.get()).drop(labels="target_thread", axis=1)
50-
df.to_csv(OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False) # noqa: F821
50+
df.to_csv(OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False, sep="\t") # noqa: F821
5151

5252
nest.Disconnect(nrn, nrn)
5353
nest.Disconnect(nrn, nrn)

testsuite/pytests/sli2py_mpi/test_issue_2119.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ def test_issue_2119(kind, specs):
5151
nrn = nest.Create("iaf_psc_alpha", n=4, params={"V_m": nest.CreateParameter(kind, specs)})
5252

5353
pd.DataFrame.from_dict(nrn.get(["global_id", "V_m"])).dropna().to_csv(
54-
OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False # noqa: F821
54+
OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False, sep="\t" # noqa: F821
5555
)

testsuite/pytests/sli2py_mpi/test_self_get_conns_with_empty_ranks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ def test_get_conns_with_empty_ranks():
4040
nest.Connect(nrns, nrns)
4141

4242
conns = nest.GetConnections().get(output="pandas").drop(labels=["target_thread", "port"], axis=1, errors="ignore")
43-
conns.to_csv(OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False) # noqa: F821
43+
conns.to_csv(OTHER_LABEL.format(nest.num_processes, nest.Rank()), index=False, sep="\t") # noqa: F821

0 commit comments

Comments
 (0)