Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

doc: warn contrastmgr deprecation in fsl 5.0.7+ #1940

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

Merged
satra merged 3 commits into nipy:master from mgxd:doc/constrastmgr
Apr 12, 2017

Conversation

@mgxd
Copy link
Member

@mgxd mgxd commented Apr 5, 2017

corrections file is no longer generated by FILMGLS.
"""

if LooseVersion(FSVersion) >= LooseVersion("5.0.7"):
Copy link
Member

Choose a reason for hiding this comment

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

what if FSL is not installed?

Copy link
Member Author

@mgxd mgxd Apr 5, 2017
edited
Loading

Choose a reason for hiding this comment

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

then FSLVersion would be "0"

BaseInterfaceInputSpec)
from .base import FSLCommand, FSLCommandInputSpec, Info

FSVersion = "0"
Copy link
Member

Choose a reason for hiding this comment

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

replace this section with the version property in FSL base class.

Copy link

codecov-io commented Apr 5, 2017
edited
Loading

Codecov Report

Merging #1940 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@ Coverage Diff @@
## master #1940 +/- ##
==========================================
+ Coverage 72.47% 72.47% +<.01% 
==========================================
 Files 1063 1063 
 Lines 54153 54149 -4 
 Branches 7811 7811 
==========================================
- Hits 39249 39247 -2 
+ Misses 13684 13682 -2 
 Partials 1220 1220
Flag Coverage Δ
#smoketests 72.47% <100%> (ø) ⬆️
#unittests 70.02% <80%> (ø) ⬆️
Impacted Files Coverage Δ
nipype/interfaces/fsl/model.py 80.57% <100%> (+0.21%) ⬆️
nipype/interfaces/utility/base.py 90.64% <0%> (-0.37%) ⬇️
nipype/interfaces/utility/tests/test_base.py 100% <0%> (ø) ⬆️

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 56b2a62...c77e00d. Read the comment docs.

"""

if Info.version() and LooseVersion(Info.version()) >= LooseVersion("5.0.7"):
warn("ContrastMgr is deprecated in FSL 5.0.7+", DeprecationWarning)
Copy link
Member

Choose a reason for hiding this comment

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

you can use DeprecationWarning without import warn

@satra satra merged commit 7b3fffc into nipy:master Apr 12, 2017
@mgxd mgxd deleted the doc/constrastmgr branch April 12, 2017 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@satra satra satra requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /