cmdline
¶
Functionality to be exposed in the command line
Module: cmdline.dicomfs
¶
DICOMFS (*args, **kwargs) |
|
FileHandle (fno) |
|
dummy_fuse |
Dummy fuse “module” so that nose does not blow during doctests |
get_opt_parser () |
|
main ([args]) |
Module: cmdline.ls
¶
Output a summary table for neuroimaging files (resolution, dimensionality, etc.)
get_opt_parser () |
|
main ([args]) |
Show must go on |
proc_file (f, opts) |
Module: cmdline.parrec2nii
¶
Code for PAR/REC to NIfTI converter command
error (msg, exit_code) |
|
get_opt_parser () |
|
main () |
|
proc_file (infile, opts) |
|
verbose (msg[, indent]) |
Module: cmdline.utils
¶
Helper utilities to be used in cmdline applications
ap (helplist, format_[, sep]) |
Little helper to enforce consistency |
safe_get (obj, name) |
A getattr which would return ‘-‘ if getattr fails |
table2string (table[, out]) |
Given list of lists figure out their common widths and print to out |
verbose (thing, msg) |
Print s if thing is less than the verbose_level |
safe_get¶
-
nibabel.cmdline.utils.
safe_get
(obj, name)¶ A getattr which would return ‘-‘ if getattr fails
table2string¶
-
nibabel.cmdline.utils.
table2string
(table, out=None)¶ Given list of lists figure out their common widths and print to out
Parameters: table : list of lists of strings
What is aimed to be printed
out : None or stream
Where to print. If None – will print and return string
Returns: string if out was None