Skip to content

enh: add PETPVC wrapper #1335

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 30 commits into from
Feb 4, 2016
Merged

enh: add PETPVC wrapper #1335

merged 30 commits into from
Feb 4, 2016

Conversation

alexsavio
Copy link
Contributor

No description provided.

hjmjohnson and others added 6 commits October 14, 2015 17:28
IPython/parallel.py:13: ShimWarning: The `IPython.parallel` package has
been deprecated. You should import from ipyparallel instead.

https://github.com/ipython/ipyparallel

https://ipyparallel.readthedocs.org/en/latest/
A warning was displayed when the length of an iterable was zero.
"Avoid RuntimeWarning: divide by zero encountered in log10"

Avoid this warning by explicitly checking for zero and giving
alternate behavior when no nodes are presented.
mri_surf2vol can either be run using a source file OR without a
source_file if the user wants to create a binary mask. Added XOR
parameter to take this behavior into account
The arguments passed to the oars command weren’t actually passed to it.
Now they are, thus one can for example use a longer walltime etc
@chrisgorgo
Copy link
Member

A few things:

return None


if __name__ == '__main__':
Copy link
Member

Choose a reason for hiding this comment

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

no need for a main_- docstring example will be run by tests

@alexsavio
Copy link
Contributor Author

Hi,

I get an error when I run make specs:

Traceback (most recent call last):
  File "tools/checkspecs.py", line 425, in <module>
    ic.check_modules()
  File "tools/checkspecs.py", line 381, in check_modules
    bad_specs = self.test_specs(m)
  File "tools/checkspecs.py", line 190, in test_specs
    __import__(uri)
  File "/home/alexandre/Software/nipype/nipype/interfaces/dipy/__init__.py", line 3, in <module>
    from .preprocess import Resample, Denoise
  File "/home/alexandre/Software/nipype/nipype/interfaces/dipy/preprocess.py", line 27, in <module>
    from dipy.align.aniso2iso import resample
ImportError: No module named 'dipy.align.aniso2iso'

@chrisgorgo
Copy link
Member

what version of dipy do you use?

@alexsavio
Copy link
Contributor Author

Well, I have it installed from pip, the 0.10.1 version. But it is not in the requirements file either.

@alexsavio
Copy link
Contributor Author

What version should I use?

@chrisgorgo
Copy link
Member

@Garyfallidis is dipy.align.aniso2iso something that was recently added or (re)moved?

@chrisgorgo
Copy link
Member

This errors has been fixed in master. Could you rebase/merge?

@Garyfallidis
Copy link
Member

Hi @chrisfilo yes we removed it. We had a DeprecationWarning for two releases. I think. Use this instead
from dipy.align.reslice import reslice it does the same thing. Let us know if there are any problems.

@oesteban
Copy link
Contributor

oesteban commented Feb 2, 2016

@chrisfilo I include a final fix on the dipy PR.

oesteban added a commit to oesteban/nipype that referenced this pull request Feb 2, 2016
@alexsavio
Copy link
Contributor Author

Hi,

I rebased it. Now I get an error when calling make specs from nitime. I am using version 0.5, installed with pip. I could use another but it is not specified in requirements.txt.

To avoid these errors, is there any version specification for all the software packages that nipype wraps?

Here is the error (File "/home/alexandre/envs/pytre/lib/python3.5/site-packages/nitime/viz.py", line 19, in <module>: from matplotlib import mpl).

Checking specs and autogenerating spec tests
python tools/checkspecs.py
/home/alexandre/Software/nipype/nipype/__init__.py:66: UserWarning: Running the tests from the install directory may trigger some failures
  warnings.warn('Running the tests from the install directory may '
BEDPOSTX has nonautotest
XFibres has nonautotest
FILMGLS has nonautotest
/home/alexandre/envs/pytre/lib/python3.5/importlib/_bootstrap_external.py:903: FutureWarning: Module nipy.labs.utils.routines deprecated, will be removed
  _imp.create_dynamic, spec)
/home/alexandre/Software/nipype/nipype/interfaces/nipy/model.py:18: FutureWarning: Module nipy.labs.glm deprecated, will be removed. Please use nipy.modalities.fmri.glm instead.
  import nipy.labs.glm.glm as GLM
/home/alexandre/envs/pytre/lib/python3.5/site-packages/matplotlib/__init__.py:1350: UserWarning:  This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

  warnings.warn(_use_error_msg)
Traceback (most recent call last):
  File "tools/checkspecs.py", line 425, in <module>
    ic.check_modules()
  File "tools/checkspecs.py", line 381, in check_modules
    bad_specs = self.test_specs(m)
  File "tools/checkspecs.py", line 190, in test_specs
    __import__(uri)
  File "/home/alexandre/Software/nipype/nipype/interfaces/nitime/__init__.py", line 4, in <module>
    from .analysis import (CoherenceAnalyzerInputSpec, CoherenceAnalyzerOutputSpec,
  File "/home/alexandre/Software/nipype/nipype/interfaces/nitime/analysis.py", line 34, in <module>
    import nitime.viz as viz
  File "/home/alexandre/envs/pytre/lib/python3.5/site-packages/nitime/viz.py", line 19, in <module>
    from matplotlib import mpl
ImportError: cannot import name 'mpl'
Makefile:72: recipe for target 'specs' failed
make: *** [specs] Error 1

@oesteban
Copy link
Contributor

oesteban commented Feb 2, 2016

Hi @alexsavio, I suggest you to update to current master in nitime, since they have already fixed that problem (https://github.com/nipy/nitime/blob/master/nitime/viz.py#L19). However, it should give you just a DeprecationWarning, what leads me to think that may be your matplotlib installation is not correct.

@alexsavio
Copy link
Contributor Author

Hi,

After running make specs two other files have been produced that I am not pushing here:

#       new file:   nipype/algorithms/tests/test_auto_ErrorMap.py
#       new file:   nipype/algorithms/tests/test_auto_Overlap.py

@chrisgorgo chrisgorgo merged commit a5a857f into nipy:master Feb 4, 2016
@alexsavio alexsavio mentioned this pull request Mar 11, 2016
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