You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not aware of any such extension. But I don't see anything tricky in the dipy package dependencies so it should be straightforward to run it in the Slicer Python environment.
some standardized interface [...] convert all into individual slicer CLI modules
The Slicer CLI modules are just declared with an xml file that declares input and output arguments.
It looks to me like there is some way to build off of IntrospectiveArgumentParser and cli_flows to grab the input/output arguments and export appropriate xml for each one. I don't exactly know the details, but it assembles an argparse parser so all the information must be there one way or another.
Doing this will drop any caching/chaining support, though, since the Slicer CLI runner saves nodes to temp directory and runs the CLI on those files. There may be some way to specify metadata out of band but I suspect that'll clobber any caching mechanisms.
I'm not aware of any such extension. But I don't see anything tricky in the dipy package dependencies so it should be straightforward to run it in the Slicer Python environment.
The Slicer CLI modules are just declared with an
xml
file that declares input and output arguments.It looks to me like there is some way to build off of
IntrospectiveArgumentParser
andcli_flows
to grab the input/output arguments and export appropriatexml
for each one. I don't exactly know the details, but it assembles anargparse
parser so all the information must be there one way or another.Doing this will drop any caching/chaining support, though, since the Slicer CLI runner saves nodes to temp directory and runs the CLI on those files. There may be some way to specify metadata out of band but I suspect that'll clobber any caching mechanisms.
https://github.com/dipy/dipy/blob/master/dipy/workflows/base.py
https://github.com/dipy/dipy/blob/master/dipy/workflows/cli.py
The text was updated successfully, but these errors were encountered: