Skip to content

DOCs: fix/improve descriptions for commands and interfaces #2593

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 6 commits into from
Jul 3, 2018

Conversation

yarikoptic
Copy link
Member

  • minor fix/impovement for N4BiasFieldCorrection input parameters description
  • tried to unify FSLCommand interfaces (to check what nipypers think about unifying them all up in a similar fashion ;))
    • I think "uses " provides no additional information
    • make them consistent and descriptive
    • short description is not a complete sentence (more of continuation of "Thisthing is ...", so removed trailing periods

mask_image = File(argstr='--mask-image %s')
weight_image = File(argstr='--weight-image %s')
desc=('input for bias correction. Negative values or values close to '
'zero should be processed prior to correction'))
Copy link
Member

Choose a reason for hiding this comment

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

processed - how? if there is some additional info we can add that would be great.

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 don't even know (yet). This was copy pasted from the --help output of the tool and IMHO is better than nothing ;-)

@@ -113,7 +113,7 @@ class BETOutputSpec(TraitedSpec):


class BET(FSLCommand):
"""Use FSL BET command for skull stripping.
"""FSL BET command for skull stripping
Copy link
Member

Choose a reason for hiding this comment

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

we could use the nipype term interface or wrapper

Copy link
Member Author

Choose a reason for hiding this comment

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

Just choose ;-) I saw such phrasing used in other ones, and decided to go with it. The point that it is an interface could somewhat be deduced from the module path, but I would also kinda like that being explicit, but then making it explicit that it is interface to the command (instead of to e.g. Python function/module) also has value.
In my case, I will use it for description of a flywheel gear, and there it would not matter either it is "interface" or "wrapper" (somewhat assumed), so I would need to strip it away or replace to something like above

Copy link
Member

Choose a reason for hiding this comment

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

let's use wrapper

@codecov-io
Copy link

codecov-io commented May 23, 2018

Codecov Report

Merging #2593 into master will decrease coverage by 0.44%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2593      +/-   ##
==========================================
- Coverage   67.62%   67.17%   -0.45%     
==========================================
  Files         340      340              
  Lines       43003    43003              
  Branches     5321     5321              
==========================================
- Hits        29080    28887     -193     
- Misses      13225    13389     +164     
- Partials      698      727      +29
Flag Coverage Δ
#smoketests 50.52% <100%> (ø) ⬆️
#unittests 64.56% <100%> (-0.52%) ⬇️
Impacted Files Coverage Δ
nipype/interfaces/ants/registration.py 74.22% <ø> (ø) ⬆️
nipype/interfaces/fsl/preprocess.py 82.6% <ø> (ø) ⬆️
nipype/interfaces/ants/resampling.py 83.87% <ø> (ø) ⬆️
nipype/interfaces/ants/segmentation.py 72.46% <100%> (ø) ⬆️
nipype/interfaces/dipy/setup.py 0% <0%> (-25%) ⬇️
nipype/pipeline/plugins/oar.py 30.68% <0%> (-23.87%) ⬇️
nipype/interfaces/nipy/base.py 80% <0%> (-20%) ⬇️
nipype/testing/utils.py 72.41% <0%> (-17.25%) ⬇️
nipype/workflows/dmri/fsl/tbss.py 78.37% <0%> (-10.82%) ⬇️
nipype/workflows/smri/freesurfer/ba_maps.py 90.27% <0%> (-9.73%) ⬇️
... and 29 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 4b576d8...c6c9093. Read the comment docs.

@effigies effigies added this to the 1.1.0 milestone Jun 5, 2018
@effigies
Copy link
Member

effigies commented Jul 2, 2018

@yarikoptic Do you have a couple minutes for this one? Are there still open discussion topics?

@mgxd
Copy link
Member

mgxd commented Jul 3, 2018

merging this for 1.1, we can always add more documentation ;)

@mgxd mgxd merged commit 55920fe into nipy:master Jul 3, 2018
@yarikoptic
Copy link
Member Author

sorry guys I've failed to finish it on my own - fell off the raidar ;-) thanks for merging!

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