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

FIX: Check for valid qform before calculating change #466

merged 2 commits into from Feb 27, 2020


Copy link

@effigies effigies commented Feb 26, 2020

This is a follow-up to #365. We were running into the case where valid_qform was False, and thus qform was an unbound variable, but trying to compare the new qform to the old qform.

This bug was introduced in 92e63fe, first released in 0.10.3. As this was included in fMRIPrep as of nipreps/fmriprep@b6d1e51, this bug is expected to affect versions 1.5.0-20.0.0 of fMRIPrep.

Fixes #465.

@effigies effigies added this to the 1.1.8 milestone Feb 26, 2020
Copy link

@pull-assistant pull-assistant bot commented Feb 26, 2020

Score: 1.00

Best reviewed: commit by commit

Optimal code review plan

     FIX: Check for valid qform before calculating change

     TEST: Test bad qform and no good affines

Powered by Pull Assistant. Last update 2878576 ... 579c819. Read the comment docs.

Copy link

@pep8speaks pep8speaks commented Feb 26, 2020

Hello @effigies, Thank you for updating!

Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, pip install flake8 and then run flake8 niworkflows.

Comment last updated at 2020-02-26 17:35:11 UTC

Copy link
Member Author

@effigies effigies commented Feb 26, 2020

Hard one to test. I don't know how to create a file that doesn't have a valid qform. I've asked the submitter to send me their header, and maybe we can do something there.

Copy link
Member Author

@effigies effigies commented Feb 26, 2020

Now have full coverage of this interface. See

This is ready for a review.

@effigies effigies changed the base branch from master to maint/1.1.x Feb 26, 2020
Copy link

@oesteban oesteban left a comment

Looks great!

@effigies effigies merged commit 6794a8b into nipreps:maint/1.1.x Feb 27, 2020
7 checks passed
effigies added a commit to nipreps/fmriprep that referenced this issue Feb 27, 2020
20.0.1 (February 27, 2020)

Bug-fix release in 20.0.x series.

This release includes fixes for rare images with invalid qform matrices and some minor
improvements in report readability and inclusion of common templates in the Docker image.

  * FIX: Handle qforms with invalid quaternions (nipreps/niworkflows#466)
  * FIX: update niworkflows location (#2005)
  * ENH: Display errors as summary/details elements in reports (nipreps/niworkflows#464)
  * DOC: Add ``--fs-subjects-dir`` usage to slurm example (#2003)
  * CI: Test that Docker image can run a common set of output spaces without network access (#1997)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

3 participants