Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This uses the fork from @rtrhd (#8 ) as a template for packaging, but it does not update the internal structure. Hopefully it can be easily audited and pulled -- if moving toward a pypi installation is in the roadmap (issue #38).
ICA_AROMA.py
andICA_AROMA_functions.py
were renamed and moved inside the package directory.ICA_AROMA.py
is now nested inside a massive function. Most of the changes are just an indent from this. Seegit diff -w --word-diff=color f1358e0 7e491a7 -- ica_aroma/ica_aroma.py
for a clean view of the changes__init__.py
exists with a function to find the module path where*_mask.nii.gz
will reside.ICA_AROMA.py
(nowica_aroma/ica_aroma.py
) needed two changes to be packaged:__file__
, we use the module path (__init__.py:get_data_path()
)sys.argv
into the new primary function. I thinkargv.pop
needs to be run after initializing the parser to keep the script nameargv[0]
from being used as a script argument.pytest
) for the two changes are intests/tests_run.py.
There's aMakefile
for setup. (make test
), usingrefin
input images from @rtrhdthe branch can be installed with pip like