Skip to content

Commit

Permalink
Fix bug when running with raw dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Aug 8, 2024
1 parent fb55b26 commit 7d30108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fmripost_aroma/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ def collect_derivatives(
derivs_cache = defaultdict(list, {})
if derivatives_dataset is not None:
layout = derivatives_dataset
if isinstance(derivatives_dataset, Path):
derivatives_dataset = BIDSLayout(
derivatives_dataset,
if isinstance(layout, Path):
layout = BIDSLayout(

Check warning on line 115 in src/fmripost_aroma/utils/bids.py

View check run for this annotation

Codecov / codecov/patch

src/fmripost_aroma/utils/bids.py#L115

Added line #L115 was not covered by tests
layout,
config=['bids', 'derivatives'],
validate=False,
)
Expand Down

0 comments on commit 7d30108

Please sign in to comment.