Skip to content

fixing tests and install errors #1866

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
merged 9 commits into from
Mar 8, 2017
Merged

fixing tests and install errors #1866

merged 9 commits into from
Mar 8, 2017

Conversation

satra
Copy link
Member

@satra satra commented Mar 7, 2017

  • removing unnecessary autotests
  • adding brukerdir to installer

@satra
Copy link
Member Author

satra commented Mar 7, 2017

closes #1866

@milesseidel - if you would like to test this yourself, you can try installing my branch while this pull request goes through review.

pip install --upgrade https://github.com/satra/nipype/archive/fix/bru2.zip

from ..confounds import CompCor


def test_CompCor_inputs():
Copy link
Contributor

Choose a reason for hiding this comment

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

why these need to go away? We are continuously adding and removing them...

Copy link
Member Author

Choose a reason for hiding this comment

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

because autotests are only added for an interface if a named test doesn't exist. and we have test_compcor.py

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, thanks!

Choose a reason for hiding this comment

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

@satra Thanks!

$ pip install --upgrade https://github.com/satra/nipype/archive/fix/bru2.zip
$ python -c "import nipype; nipype.test()"
...
===== 585 passed, 1 skipped in 22.58 seconds ====

@codecov-io
Copy link

codecov-io commented Mar 7, 2017

Codecov Report

Merging #1866 into master will decrease coverage by -0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1866      +/-   ##
==========================================
- Coverage   73.13%   73.11%   -0.03%     
==========================================
  Files        1065     1061       -4     
  Lines       53429    53373      -56     
==========================================
- Hits        39075    39023      -52     
+ Misses      14354    14350       -4
Flag Coverage Δ
#unittests 73.11% <100%> (-0.03%)
Impacted Files Coverage Δ
nipype/interfaces/fsl/preprocess.py 77.51% <ø> (ø)
nipype/interfaces/fsl/tests/test_auto_FNIRT.py 92.85% <ø> (ø)
...ype/interfaces/fsl/tests/test_auto_Level1Design.py 92.85% <ø> (ø)
.../tests/test_auto_CreateJacobianDeterminantImage.py 92.85% <ø> (ø)
nipype/interfaces/fsl/model.py 54.81% <ø> (ø)
nipype/interfaces/ants/utils.py 83.78% <100%> (ø)
nipype/pipeline/engine/tests/test_engine.py 94.23% <100%> (ø)
nipype/interfaces/fsl/tests/test_maths.py 100% <100%> (ø)
nipype/utils/tests/test_filemanip.py 93.21% <100%> (ø)

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 0424b65...ffe7dd5. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Mar 7, 2017

Codecov Report

Merging #1866 into master will decrease coverage by -0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1866      +/-   ##
==========================================
- Coverage   73.13%   73.11%   -0.03%     
==========================================
  Files        1065     1061       -4     
  Lines       53429    53367      -62     
==========================================
- Hits        39075    39017      -58     
+ Misses      14354    14350       -4
Flag Coverage Δ
#unittests 73.11% <100%> (-0.03%)
Impacted Files Coverage Δ
nipype/interfaces/fsl/preprocess.py 77.38% <ø> (-0.13%)
.../tests/test_auto_CreateJacobianDeterminantImage.py 92.85% <ø> (ø)
...ype/interfaces/fsl/tests/test_auto_Level1Design.py 92.85% <ø> (ø)
nipype/interfaces/fsl/tests/test_preprocess.py 100% <ø> (ø)
nipype/interfaces/fsl/model.py 54.81% <ø> (ø)
nipype/interfaces/fsl/tests/test_auto_FNIRT.py 92.85% <ø> (ø)
nipype/interfaces/base.py 84.84% <100%> (ø)
nipype/pipeline/engine/tests/test_engine.py 94.23% <100%> (ø)
nipype/utils/tests/test_filemanip.py 93.21% <100%> (ø)
nipype/interfaces/tests/test_base.py 96.85% <100%> (ø)
... and 4 more

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 0424b65...6dc7b1c. Read the comment docs.

@@ -130,7 +133,7 @@ def main():
install_requires=ldict['REQUIRES'],
setup_requires=['future', 'configparser'],
provides=ldict['PROVIDES'],
packages=find_packages(exclude=['*.tests']),
packages=find_packages(),
Copy link
Member Author

Choose a reason for hiding this comment

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

@oesteban, @chrisfilo - any idea why the tests directories were removed from setup? i'm putting them back in.

Copy link
Contributor

Choose a reason for hiding this comment

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

It is a bit blurry in my memory now, but I think this was added to avoid tests to be run from the installed version of nipype and make sure they run from the source I guess py.test takes care of this, so it should be fine re-adding them.

@@ -1,9 +1,9 @@
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..preprocess import ApplyXfm
from ..preprocess import ApplyXFM
Copy link
Member

Choose a reason for hiding this comment

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

nipype/interfaces/fsl/tests/test_auto_ApplyXFM.py already exists. Should this file just be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

i think this PR has taken care of it. the issue is with OSX and case-insensitive installations, which gave rise to the same named file with different content. the older interface which was deprecated in 0.12.1 has now been removed, so we should be ok.

@satra satra merged commit a81d993 into nipy:master Mar 8, 2017
@satra satra deleted the fix/bru2 branch October 30, 2017 15:17
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.

5 participants