Skip to content

Conversation

@oesteban
Copy link
Member

Turns out there is a fully-fledged nipype interface for the resampling. Here I just switch to that.

@pull-assistant
Copy link

pull-assistant bot commented May 10, 2020

Score: 0.89

Best reviewed: commit by commit


Optimal code review plan (1 warning)

FIX: Correctly pin niworkflows branch and use new interface

setup.cfg 50% changes removed in enh: better pin spec...

     enh: better pin specific commit

     Update brainextraction.py

Powered by Pull Assistant. Last update 1ddc0c1 ... 3d09d34. Read the comment docs.

import os
from multiprocessing import cpu_count
from pkg_resources import resource_filename as pkgr_fn
from packaging.version import parse as parseversion, Version
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleaning up some stuff that is not ever used anymore

# niworkflows
from niworkflows.interfaces.ants import ImageMath
from niworkflows.utils.images import resample_by_spacing
from niworkflows.interfaces.images import RegridToZooms
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the new interface

setup.cfg Outdated
nipype @ git+https://github.com/nipy/nipype.git@master
niworkflows @ git+https://github.com/nipreps/niworkflows.git@master
templateflow >= 0.5.2
niworkflows @ git+https://github.com/oesteban/niworkflows.git@enh/resample-interface
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the right way of pinning the new branch

@oesteban oesteban force-pushed the enh/use-niworkflows-interface branch from 91d9b41 to 1ddc0c1 Compare May 10, 2020 16:35
tidying up for consistency
@eilidhmacnicol eilidhmacnicol merged commit cdf5276 into master May 11, 2020
@eilidhmacnicol eilidhmacnicol deleted the enh/use-niworkflows-interface branch May 11, 2020 08:13
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.

3 participants