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: Use PackageInfo to get NiftyReg version #3194

Merged
merged 2 commits into from
Mar 24, 2020
Merged

FIX: Use PackageInfo to get NiftyReg version #3194

merged 2 commits into from
Mar 24, 2020

Conversation

fepegar
Copy link
Contributor

@fepegar fepegar commented Mar 24, 2020

Summary

Fixes #2615.

List of changes proposed in this PR (pull-request)

Acknowledgment

  • (Mandatory) I acknowledge that this contribution will be available under the Apache 2 license.

@@ -91,7 +99,7 @@ def _environ_update(self):
self.inputs.omp_core_val = Undefined

def check_version(self):
_version = self.version_from_command()
_version = self.version
Copy link
Member

Choose a reason for hiding this comment

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

L106 assumes this is a bytes object. I think it's going to be a str?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so. I got an error because it was a str so I removed the old L60: https://github.com/nipy/nipype/pull/3194/files/199dc2e3e1a6c5dd0f8f35b6a6497015325ee85f#diff-84c9861899b85298fccffbb72fe8fe9eL60.

I'll remove this one too.

@codecov
Copy link

codecov bot commented Mar 24, 2020

Codecov Report

Merging #3194 into master will decrease coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3194      +/-   ##
==========================================
- Coverage   65.07%   65.07%   -0.01%     
==========================================
  Files         301      301              
  Lines       39624    39627       +3     
  Branches     5247     5247              
==========================================
+ Hits        25786    25787       +1     
- Misses      12771    12775       +4     
+ Partials     1067     1065       -2
Flag Coverage Δ
#unittests 65.07% <66.66%> (-0.01%) ⬇️
Impacted Files Coverage Δ
nipype/interfaces/niftyreg/base.py 54.21% <66.66%> (+2.96%) ⬆️
nipype/interfaces/base/core.py 83.26% <0%> (-0.59%) ⬇️

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 c37fcfb...328bd4e. Read the comment docs.

@effigies effigies added this to the 1.5.0 milestone Mar 24, 2020
@effigies
Copy link
Member

Thanks!

@effigies effigies merged commit 1ca5d4e into nipy:master Mar 24, 2020
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.

NiftyReg interface raises ValueError: invalid version number
2 participants