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

ENH: Autogenerate B0FieldIdentifiers from IntendedFor #142

Merged
merged 2 commits into from
Dec 3, 2020

Conversation

oesteban
Copy link
Member

@oesteban oesteban commented Dec 2, 2020

This PR:

  • Improves the bidirectional mapping, wrapped around with a new EstimatorRegistry to easily check whether a file has already been included for some estimation method.
  • Looks into the epi files with IntendedFor metadata to complete the estimation workflows that can automatically be set up.
  • Prepares the codebase for the B0FieldIdentifier, should it be accepted by BIDS.

Improvements to tests

This PR extends the test data available through the pytest fixture with dsA (on the repo, empty files) and ds000054 from fMRIPrep. In addition, all testing data has been migrated to a datalad-osf solution for easier maintenance and version tracking.

@codecov
Copy link

codecov bot commented Dec 2, 2020

Codecov Report

Merging #142 (486cc86) into dev/1.4.0 (a96bd6b) will increase coverage by 0.00%.
The diff coverage is 95.34%.

Impacted file tree graph

@@            Coverage Diff             @@
##           dev/1.4.0     #142   +/-   ##
==========================================
  Coverage      93.65%   93.65%           
==========================================
  Files             18       18           
  Lines           1008     1040   +32     
  Branches         129      136    +7     
==========================================
+ Hits             944      974   +30     
- Misses            37       39    +2     
  Partials          27       27           
Flag Coverage Δ
travis 81.90% <95.34%> (+0.37%) ⬆️
unittests 93.43% <95.23%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdcflows/workflows/base.py 95.65% <93.10%> (-4.35%) ⬇️
sdcflows/fieldmaps.py 85.71% <100.00%> (ø)
sdcflows/utils/bimap.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a96bd6b...486cc86. Read the comment docs.

@oesteban oesteban marked this pull request as ready for review December 3, 2020 13:32
@oesteban oesteban merged commit 68ab2fe into nipreps:dev/1.4.0 Dec 3, 2020
@oesteban oesteban deleted the enh/issue-126 branch December 3, 2020 14:22
oesteban added a commit that referenced this pull request Dec 24, 2020
2.0.0rc4

* FIX: Convert SEI fieldmaps given in rad/s into Hz (#127)
* FIX: Limit ``3dQwarp`` to maximum 4 CPUs for stability reasons (#128)
* ENH: Generate a simple mask after correction (#161)
* ENH: Increase unit-tests coverage of ``sdcflows.fieldmaps`` (#159)
* ENH: Optimize tensor-product B-Spline kernel evaluation (#157)
* ENH: Add a memory check to dynamically limit interpolation blocksize (#156)
* ENH: Massage TOPUP's fieldcoeff files to be compatible with ours (#154)
* ENH: Add a simplistic EPI masking algorithm (#152)
* ENH: Utility that returns the ``B0FieldSource`` of a given potential EPI target (#151)
* ENH: Write ``fmapid-`` entity in Derivatives (#150)
* ENH: Multiplex fieldmap estimation outputs into a single ``outputnode`` (#149)
* ENH: Putting the new API together on a base workflow (#143)
* ENH: Autogenerate ``B0FieldIdentifiers`` from ``IntendedFor`` (#142)
* ENH: Finalizing the API overhaul (#132)
* ENH: Keep a registry of already-used identifiers (and auto-generate new) (#130)
* ENH: New objects for better representation of fieldmap estimation (#114)
* ENH: Show FieldmapReportlet oriented aligned with cardinal axes (#120)
* ENH: New estimation API (featuring a TOPUP implementation!) (#115)
* DOC: Minor improvements to the literate workflows descriptions. (#162)
* DOC: Fix typo in docstring (#155)
* DOC: Enable NiPype's sphinx-extension to better render Interfaces (#131)
* MAINT: Drop Python 3.6 (#160)
* MAINT: Enable Git-archive protocol with setuptools-scm-archive (#153)
* MAINT: Migrate TravisCI -> GH Actions (completion) (#138)
* MAINT: Migrate TravisCI -> GH Actions (#137)
* MAINT: Minimal unit test and refactor of pepolar workflow node (#133)
* MAINT: Collect code coverage from tests on Circle (#122)
* MAINT: Test minimum dependencies with TravisCI (#96)
* MAINT: Add FLIRT config files to prepare for TOPUP integration (#116)
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.

1 participant