Skip to content

Commit

Permalink
Merge pull request #100 from tsalo/consolidate-cli
Browse files Browse the repository at this point in the history
[REF] Merge CLI into workflows
  • Loading branch information
emdupre authored Jul 30, 2018
2 parents 4b9687d + b539b68 commit 74e23e2
Show file tree
Hide file tree
Showing 15 changed files with 329 additions and 367 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ API
:template: function.rst
:toctree: generated/

tedana.workflows.tedana
tedana.workflows.t2smap
tedana.workflows.tedana_workflow
tedana.workflows.t2smap_workflow

.. currentmodule:: tedana

Expand Down
12 changes: 6 additions & 6 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ Run tedana
This is the full tedana workflow, which runs multi-echo ICA and outputs
multi-echo denoised data along with many other derivatives.
To see which files are generated by this workflow, check out the workflow
documentation: :py:func:`tedana.workflows.tedana`.
documentation: :py:func:`tedana.workflows.tedana_workflow`.

.. argparse::
:ref: tedana.cli.run_tedana.get_parser
:ref: tedana.workflows.tedana._get_parser
:prog: tedana
:func: get_parser
:func: _get_parser

Run t2smap
----------
This workflow uses multi-echo data to optimally combine data across echoes and\
to estimate T2* and S0 maps or time series.
To see which files are generated by this workflow, check out the workflow
documentation: :py:func:`tedana.workflows.t2smap`.
documentation: :py:func:`tedana.workflows.t2smap_workflow`.

.. argparse::
:ref: tedana.cli.run_t2smap.get_parser
:ref: tedana.workflows.t2smap._get_parser
:prog: t2smap
:func: get_parser
:func: _get_parser
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def main():
tests_require=ldict['TESTS_REQUIRES'],
extras_require=ldict['EXTRA_REQUIRES'],
entry_points={'console_scripts': [
't2smap=tedana.cli.run_t2smap:main',
'tedana=tedana.cli.run_tedana:main'
't2smap=tedana.workflows.t2smap:_main',
'tedana=tedana.workflows.tedana:_main'
]},
packages=find_packages(exclude=("tests",)),
package_data=ldict['PACKAGE_DATA'],
Expand Down
2 changes: 0 additions & 2 deletions tedana/cli/__init__.py

This file was deleted.

88 changes: 0 additions & 88 deletions tedana/cli/run_t2smap.py

This file was deleted.

185 changes: 0 additions & 185 deletions tedana/cli/run_tedana.py

This file was deleted.

1 change: 1 addition & 0 deletions tedana/tests/test_model_combine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for tedana.model.combine
"""

import numpy as np

from tedana.model import combine
Expand Down
1 change: 1 addition & 0 deletions tedana/tests/test_model_fit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for tedana.model.fit
"""

import numpy as np

from tedana.model import fit
Expand Down
1 change: 1 addition & 0 deletions tedana/tests/test_model_monoexponential.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for tedana.model.monoexponential
"""

import os.path as op

import pytest
Expand Down
Loading

0 comments on commit 74e23e2

Please sign in to comment.