Skip to content

fix: apply filters only to fieldmaps - #563

Merged
mgxd merged 4 commits into
maint/2.15.xfrom
fix/wrangle-filters
Oct 2, 2026
Merged

mgxd merged 4 commits into
maint/2.15.xfrom
fix/wrangle-filters

Conversation

@mgxd

@mgxd mgxd commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

find_estimators applied the flat bids_filters dict to every query, including the anatomical reference and EPI targets for fieldmap-less estimation. This changes filters to just apply to fieldmap queries - in the future, it may be worthwhile to allow per-query filtering.

Also fixes acquisition extraction and acq/ceagent potentially splitting into chars.

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.14%. Comparing base (8fee67e) to head (afc0d6f).

Additional details and impacted files
@@              Coverage Diff              @@
##           maint/2.15.x     #563   +/-   ##
=============================================
  Coverage         84.13%   84.14%           
=============================================
  Files                30       30           
  Lines              2875     2876    +1     
  Branches            382      382           
=============================================
+ Hits               2419     2420    +1     
  Misses              381      381           
  Partials             75       75           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mgxd
mgxd merged commit 9a35a26 into maint/2.15.x Oct 2, 2026
26 of 27 checks passed
@mgxd
mgxd deleted the fix/wrangle-filters branch October 2, 2026 15:36
mgxd added a commit that referenced this pull request Oct 2, 2026
2.15.2 (October 2, 2026)

Patch release in the 2.15.x series.

This includes two fixes for fieldmap-less estimation:

- In multi-session datasets, a subject-level anatomical reference (i.e., without
  a ``session`` entity) was not found for session-specific EPI data.
  A session-matched anatomical image is still preferred when available.
- ``bids_filters`` intended for fieldmaps (e.g., ``{"datatype": "fmap"}``) were also
  applied when searching for the anatomical reference and EPI targets, silently
  preventing fieldmap-less estimation (nipreps/fmriprep#3632).

It also fixes the PEPOLAR heuristics ignoring ``acquisition`` filters, and
finding no estimators when filtering on a single ``ceagent``.

* FIX: Do not apply fieldmap filters to fieldmap-less queries (#563)
* FIX: Allow sessionless anatomical references for fieldmap-less estimation (#562)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants