@@ -17,34 +17,106 @@ You may then run the NWBInspector via the command line via the following usages
1717which should quickly display a basic report to your console window.
1818
1919
20- Common Flags
21- ------------
20+ All available options for the CLI may be viewed by calling :code: `nwbinspector --help `. We will now highlight some of
21+ the most useful of these options.
22+
23+
24+
25+ Formatting the Report
26+ ---------------------
27+
28+ The basic report layout organizes by :py:attr: `~nwbinspector.register_check.InspectorMessage.importance ` first and
29+ :py:attr: `~nwbinspector.register_check.InspectorMessage.file_path ` last.
30+
31+ For example,
32+
33+ ::
34+
35+ insert example
36+
37+ however, the NWBInspector supports more general organization as defined by the `--levels ` flag. To use this flag,
38+ you must pass a series a comma-separated words that correspond to any attributes of the
39+ :py:class: `~nwbinspector.register_check.InspectorMessage ` in any order.
40+
41+ For example,
42+
43+ ::
44+
45+ nwbinspector path/to/my/data/dir/ --levels check_function_name,object_type,file_path
46+
47+ .. note ::
48+
49+ The :py:attr: `~nwbinspector.register_check.InspectorMessage.message ` itself cannot be used in organization.
50+
51+ The ascending or descending order of each of these levels may be additionally controlled with the `--reverse ` flag,
52+ which is likewise a comma-separated series of boolean words.
53+
54+ For example,
55+
56+ ::
57+
58+ nwbinspector path/to/my/data/dir/ --levels check_function_name,object_type,file_path --reverse false,true,false
59+
60+ .. note ::
61+
62+ Valid 'boolean words' are any capitalizations of the words ``"false", "true" `` or characters ``"F", "T" ``, and even
63+ numbers like ``"0, 1" ``.
64+
65+
66+ The defalt report also aggregates identical outputs into a summary over multiple files;
67+
68+ ::
69+
70+ insert example
71+
72+ and it will do this any time the last value of the ``--levels `` list is ``file_path ``. To see the full report of every
73+ issue over all files, use the ``--detailed `` flag.
74+
75+
76+
77+ Saving the Report
78+ -----------------
2279
2380There are many common options you can specify with flags, such as saving the report for future reference...
2481
2582::
2683
27- nwbinspector path/to/my/data.nwb --log -file path/to/my/nwbinspector_report.txt
84+ nwbinspector path/to/my/data.nwb --report -file-path path/to/my/nwbinspector_report.txt
2885
29- # if a report file from a previous run of the inspector is already present at the location
30- # it can be overwritten with '-o'
31- nwbinspector path/to/my/data.nwb -o --log-file path/to/my/nwbinspector_report.txt
3286
87+ If a report file from a previous run of the inspector is already present at the location, it can be overwritten with
88+ the ``-o `` or ``--overwrite `` flag...
89+
90+ ::
3391
34- Or enabling parallelization over a directory to allow the NWBInspector to run many times faster...
92+ nwbinspector path/to/my/data.nwb --report-file-path path/to/my/nwbinspector_report.txt -o
93+
94+
95+
96+ Faster Inspection
97+ -----------------
98+
99+ The NWBInspector supports parallelization over a directory to allow the NWBInspector to run many times faster. To use
100+ this feature, simply set the ``--n-jobs `` flag to either a positive integer corresponding to the number of CPUs you
101+ wish to use, or set to ``-1 `` to use all available system resources.
102+
103+ For example,
35104
36105::
37106
38- # '--n-jobs -1' will automatically use as many resources as are available on your system
39107 nwbinspector path/to/my/data/dir/ --n-jobs -1
40108
41109
42- And if your file was written using NWB extensions (link to extensions) that may possess their own specific
43- checks, those checks can be added ...
44110
45- ::
111+ External Modules
112+ ----------------
46113
47- nwbinspector path/to/my/data.nwb -m my_extension_module1 my_extension_module2
114+ If the NWBFiles being inspected require an external module to parse, or have externally defined check registries (such
115+ as those specific to an :nwb-schema:ref: `NWB Extension<extending-the-format> `), these can be specified with the ``-m ``
116+ or ``--modules `` flag.
48117
118+ For example,
49119
50- Other flags may be viewed in the command line by calling :code: `nwbinspector --help `.
120+ ::
121+
122+ nwbinspector path/to/my/data.nwb -m my_extension_module1 my_extension_module2
0 commit comments