Skip to content

Commit b2253d3

Browse files
pre-commit-ci[bot]teonbrooks
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 50cbfd0 commit b2253d3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mne_bids/path.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,8 +1369,7 @@ def _get_matching_bidspaths_from_filesystem(bids_path):
13691369
datatype = _infer_datatype(root=bids_root, sub=sub, ses=ses)
13701370

13711371
data_dir = BIDSPath(
1372-
subject=sub, session=ses, datatype=datatype, root=bids_root,
1373-
check=check
1372+
subject=sub, session=ses, datatype=datatype, root=bids_root, check=check
13741373
).directory
13751374

13761375
# For BTi data, just return the directory with a '.pdf' extension

mne_bids/tests/test_path.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,7 @@ def test_datasetdescription_with_bidspath(return_bids_test_dir):
16111611
== Path(f"{return_bids_test_dir}/dataset_description.json").as_posix()
16121612
)
16131613

1614+
16141615
@testing.requires_testing_data
16151616
def test_update_check(return_bids_test_dir):
16161617
"""Test check argument is passed BIDSPath properly."""
@@ -1619,8 +1620,10 @@ def test_update_check(return_bids_test_dir):
16191620
check=False,
16201621
)
16211622
bids_path.update(datatype="eyetrack")
1622-
assert (bids_path.fpath.as_posix()
1623-
== Path(f"{return_bids_test_dir}/eyetrack").as_posix())
1623+
assert (
1624+
bids_path.fpath.as_posix()
1625+
== Path(f"{return_bids_test_dir}/eyetrack").as_posix()
1626+
)
16241627

16251628

16261629
def test_update_fail_check_no_change():

0 commit comments

Comments
 (0)