Skip to content

Commit

Permalink
MAINT: Tweak test for latest MNE (#1191)
Browse files Browse the repository at this point in the history
* MAINT: Tweak test for latest MNE

* Update mne_bids/tests/test_write.py

---------

Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
  • Loading branch information
larsoner and sappelhoff committed Nov 14, 2023
1 parent 61b26aa commit 5ad1db4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mne_bids/tests/test_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#
# License: BSD-3-Clause
import sys
import inspect
import os
import os.path as op
from glob import glob
Expand Down Expand Up @@ -617,7 +618,15 @@ def test_fif(_bids_validate, tmp_path):
raw2, events2, event_id=event_id, tmin=-0.2, tmax=0.5, preload=True
)
assert_array_almost_equal(raw.get_data(), raw2.get_data())
assert_array_almost_equal(epochs.get_data(), epochs2.get_data(), decimal=4)
kwargs = dict()
# XXX: remove logic once support for mne<1.6 is dropped
if "copy" in inspect.getfullargspec(epochs.get_data).kwonlyargs:
kwargs["copy"] = False
assert_array_almost_equal(
epochs.get_data(**kwargs),
epochs2.get_data(**kwargs),
decimal=4,
)
_bids_validate(bids_root)

# write the same data but pretend it is empty room data:
Expand Down

0 comments on commit 5ad1db4

Please sign in to comment.