Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Tweak test for latest MNE #1191

Merged
merged 2 commits into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
sappelhoff marked this conversation as resolved.
Show resolved Hide resolved
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