Skip to content

small edit of the MCFLIRT tests #1979

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 1 commit into from
Apr 29, 2017
Merged

Conversation

djarecka
Copy link
Collaborator

No description provided.

@codecov-io
Copy link

codecov-io commented Apr 28, 2017

Codecov Report

Merging #1979 into master will decrease coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1979     +/-   ##
=========================================
- Coverage    72.6%   72.51%   -0.1%     
=========================================
  Files        1070     1063      -7     
  Lines       54456    54211    -245     
  Branches     7868     7823     -45     
=========================================
- Hits        39537    39309    -228     
+ Misses      13686    13681      -5     
+ Partials     1233     1221     -12
Flag Coverage Δ
#smoketests 72.51% <100%> (-0.1%) ⬇️
#unittests 70.05% <100%> (-0.11%) ⬇️
Impacted Files Coverage Δ
nipype/interfaces/fsl/tests/test_preprocess.py 100% <100%> (ø) ⬆️
nipype/interfaces/io.py 50.6% <0%> (-1.91%) ⬇️
nipype/interfaces/freesurfer/base.py 72% <0%> (-1.69%) ⬇️
nipype/interfaces/freesurfer/utils.py 62.31% <0%> (-0.88%) ⬇️
nipype/interfaces/freesurfer/tests/test_utils.py 96% <0%> (-0.88%) ⬇️
...ype/interfaces/freesurfer/tests/test_preprocess.py 89.04% <0%> (-0.57%) ⬇️
nipype/interfaces/fsl/model.py 80.36% <0%> (-0.25%) ⬇️
nipype/algorithms/rapidart.py 64.3% <0%> (-0.21%) ⬇️
nipype/interfaces/fsl/epi.py 65.54% <0%> (-0.13%) ⬇️
nipype/interfaces/fsl/maths.py 99.31% <0%> (-0.11%) ⬇️
... and 23 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 a17af6b...9c74054. Read the comment docs.

@@ -344,6 +350,9 @@ def test_mcflirt(setup_flirt):

for name, settings in list(opt_map.items()):
fnt = fsl.MCFLIRT(in_file=infile, **{name: settings[1]})
outfile = os.path.join(os.getcwd(), nme)
outfile = fnt._gen_fname(outfile, suffix='_mcf')
Copy link
Member

Choose a reason for hiding this comment

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

Since these are always the same, they could go up under _, nme = os.path.split(infile), rather than be in the loop body.

Copy link
Member

Choose a reason for hiding this comment

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

the first line could move, but outfile variable name would need to change because the second outfile has to be generated within the loop.

@effigies
Copy link
Member

effigies commented Apr 28, 2017 via email

@satra satra merged commit 3460d6a into nipy:master Apr 29, 2017
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.

4 participants