Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged with master, fixed simple conflicts. Left changes from oesteba…
…n regarding encoding comment and imports for Python 3 compatability.
- Loading branch information
Showing
641 changed files
with
5,852 additions
and
5,174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.git/ | ||
*.pyc | ||
*.egg-info | ||
__pycache__ | ||
docker/nipype_* | ||
docker/test-* | ||
.coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!python | ||
"""Prints the content of any .pklz file in your working directory. | ||
Examples: | ||
nipype_print_pklz _inputs.pklz | ||
nipype_print_pklz _node.pklz | ||
""" | ||
|
||
def pprint_pklz_file(pklz_file): | ||
""" Print the content of the pklz_file. """ | ||
from pprint import pprint | ||
from nipype.utils.filemanip import loadpkl | ||
|
||
pkl_data = loadpkl(pklz_file) | ||
pprint(pkl_data) | ||
|
||
|
||
if __name__ == "__main__": | ||
|
||
import sys | ||
from argparse import ArgumentParser, RawTextHelpFormatter | ||
|
||
defstr = ' (default %(default)s)' | ||
parser = ArgumentParser(prog='nipype_print_pklz', | ||
description=__doc__, | ||
formatter_class=RawTextHelpFormatter) | ||
parser.add_argument('pklzfile', metavar='f', type=str, | ||
help='pklz file to display') | ||
|
||
if len(sys.argv) == 1: | ||
parser.print_help() | ||
exit(0) | ||
|
||
args = parser.parse_args() | ||
pprint_pklz_file(args.pklzfile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.