Skip to content

Commit 3c0adaf

Browse files
pytest test_source_estimate.py passes, changes were made to test_source_estimate as because of the changed file format, read_source_estimate was not recieving the proper path to the files.
1 parent cb6db6a commit 3c0adaf

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

mne/tests/test_source_estimate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def test_io_stc(tmp_path):
481481
"""Test IO for STC files."""
482482
stc = _fake_stc()
483483
stc.save(tmp_path/"tmp.stc", overwrite=True)
484-
stc2 = read_source_estimate(tmp_path/"tmp.stc")
484+
stc2 = read_source_estimate(tmp_path/"tmp")
485485
assert_array_almost_equal(stc.data, stc2.data)
486486
assert_array_almost_equal(stc.tmin, stc2.tmin)
487487
assert_equal(len(stc.vertices), len(stc2.vertices))

sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
os.makedirs(output_dir, exist_ok=True)
2929

3030
stc.save("test.h5",overwrite=True)
31-
stc.save("test-lh.stc",overwrite=True)
31+
stc.save("test.stc",overwrite=True)
3232
# # Save as .stc file
3333
# stc.save(f"{output_dir}/dummy", ftype="stc", overwrite=True)
3434

test.h5

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)