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 tutorials (continuation of #1036) #2459

Merged
merged 55 commits into from
Feb 23, 2018
Merged

Conversation

djarecka
Copy link
Collaborator

@djarecka djarecka commented Feb 22, 2018

will update and add suggestions from #1036

I'm removing all *.rst files that are not used anymore (e.g. tutorial_101; see also discussion here)

Mathieu Dubois and others added 30 commits January 30, 2015 18:35
…cters in example, PEP8-ize examples, language.
…files and correct output specification in example 2.
…date it), mention that nodes need absolut file path correct typos and add download section.
fix: documentation indentation and highlighting
Conflicts:
	examples/fmri_ants_openfmri.py
Conflicts:
	examples/fmri_ants_openfmri.py
Mathieu Dubois and others added 22 commits March 1, 2015 19:05
…cters in example, PEP8-ize examples, language.
…files and correct output specification in example 2.
…date it), mention that nodes need absolut file path correct typos and add download section.
…o fix_tutorials

Conflicts:
	doc/devel/cmd_interface_devel.rst
	doc/devel/matlab_interface_devel.rst
	doc/users/tutorial_101.rst
	examples/fmri_ants_openfmri.py
	examples/rsfmri_vol_surface_preprocessing_nipy.py
@@ -80,7 +80,7 @@ symbols. For an input defined in InputSpec to be included into the executed
commandline ``argstr`` has to be included. Additionally inside the main
interface class you need to specify the name of the executable by assigning it
to the ``_cmd`` field. Also the main interface class needs to inherit from
:class:`nipype.interfaces.base.CommandLine`:
:class:`CommandLine <nipype.interfaces.base.CommandLine>`:
Copy link
Member

Choose a reason for hiding this comment

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

This currently does not link. We should verify that it does after this change. If not, may want to change :class: to :ref:.

Or possibly it should now be nipype.interfaces.base.core.CommandLine.

@@ -92,7 +92,7 @@ to the ``_cmd`` field. Also the main interface class needs to inherit from
There is one more thing we need to take care of. When the executable finishes
processing it will presumably create some output files. We need to know which
files to look for, check if they exist and expose them to whatever node would
like to use them. This is done by implementing ``_list_outputs`` method in the
like to use them. This is done by implementing :func:`_list_outputs <nipype.interfaces.base.BaseInterface._list_outputs>` method in the
Copy link
Member

Choose a reason for hiding this comment

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

I think this change should probably be reverted. There is no documentation for private methods like this.

doc/index.rst Outdated
Slicer_), eases the design of workflows within and between packages, and
reduces the learning curve necessary to use different packages. Nipype is
creating a collaborative platform for neuroimaging software development
creating a collaborative platform for neuroimaging software development
Copy link
Member

Choose a reason for hiding this comment

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

Spaces at the end of lines.

"""
Return the aparc+aseg.mgz file
"""

Copy link
Member

Choose a reason for hiding this comment

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

I would revert this. I don't see the value in adding newlines. (Could be a bad merge.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok, reverted, but this file contains many similar docstrings


def _list_outputs(self):
outputs = self._outputs().get()
return outputs
Copy link
Member

Choose a reason for hiding this comment

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

@@ -39,7 +39,7 @@ above example we have used the ``desc`` metadata which holds human readable
description of the input. The ``mandatory`` flag forces Nipype to throw an
exception if the input was not set. ``exists`` is a special flag that works only
for ``File traits`` and checks if the provided file exists. More details can be
found at :doc:`interface_specs`.
found at :ref:`interface_specs`.
Copy link
Member

Choose a reason for hiding this comment

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

This change doesn't do anything. Might as well revert to keep the diff clean, unless there's a good reason to prefer :ref:.

@@ -10,7 +10,8 @@ Specifying input settings
The nipype interface modules provide a Python interface to external
packages like FSL_ and SPM_. Within the module are a series of Python
classes which wrap specific package functionality. For example, in
the fsl module, the class :class:`nipype.interfaces.fsl.BET` wraps the
the :ref:`fsl <nipype.interfaces.fsl>` module, the class
:class:`nipype.interfaces.fsl.BET>` wraps the
Copy link
Member

Choose a reason for hiding this comment

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

> should be removed. Looks like a bad merge.

`newAntsExample.sh <https://github.com/stnava/ANTs/blob/master/Scripts/newAntsExample.sh>`_
* This is currently set to perform a very quick registration. However,\
the registration can be made significantly more accurate for cortical\
structures by increasing the number of iterations.
Copy link
Member

Choose a reason for hiding this comment

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

This is part of a docstring. It doesn't look very good. https://387-59325098-gh.circle-artifacts.com/0/home/circleci/work/docs/users/examples/fmri_ants_openfmri.html

I'd say revert this block.

`newAntsExample.sh <https://github.com/stnava/ANTs/blob/master/Scripts/newAntsExample.sh>`_
* This is currently set to perform a very quick registration. However,\
the registration can be made significantly more accurate for cortical\
structures by increasing the number of iterations.
Copy link
Member

Choose a reason for hiding this comment

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

And this one.

`newAntsExample.sh <https://github.com/stnava/ANTs/blob/master/Scripts/newAntsExample.sh>`_
* This is currently set to perform a very quick registration. However,\
the registration can be made significantly more accurate for cortical\
structures by increasing the number of iterations.
Copy link
Member

Choose a reason for hiding this comment

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

And this one.

Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

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

LGTM. Will merge tomorrow if no objections.

@effigies effigies added this to the 1.0.1 milestone Feb 23, 2018
@effigies effigies merged commit 52efaa0 into nipy:master Feb 23, 2018
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.

None yet

4 participants