Skip to content

Commit 76e73d9

Browse files
committed
added doc to won_convert
1 parent 140a3b6 commit 76e73d9

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

docs/source/cmd.rst

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
Command Line
2+
============
3+
When you install **wonambi**, you'll have access to some functions in your command line.
4+
5+
wonambi
6+
-------
7+
This is the main command to run the graphical user interface (GUI).
8+
9+
.. code-block:: bash
10+
11+
usage: wonambi [-h] [-v] [-l LOG] [--reset] [--bids]
12+
[dataset] [annot] [montage]
13+
14+
Package to analyze EEG, ECoG and other electrophysiology formats. It allows
15+
for visualization of the results and for a GUI that can be used to score sleep
16+
stages.
17+
18+
positional arguments:
19+
dataset full path to dataset to open
20+
annot full path to annotations file to open
21+
montage full path to montage file to open
22+
23+
optional arguments:
24+
-h, --help show this help message and exit
25+
-v, --version Return version
26+
-l LOG, --log LOG Logging level: info (default), debug
27+
--reset Reset (clear) configuration file
28+
--bids Read the information stored in the BIDS format
29+
30+
31+
won_convert
32+
-----------
33+
This command allows you to convert the data from one format known to **wonambi** into another common format (like `edf`, Brain Vision, BIDS).
34+
35+
.. code-block:: bash
36+
37+
usage: won_convert [-h] [-v] [-l LOG] [-f SAMPLING_FREQ] [-b BEGTIME]
38+
[-e ENDTIME]
39+
[infile] [outfile]
40+
41+
Convert data from one known format to another format
42+
43+
positional arguments:
44+
infile full path to dataset to convert
45+
outfile full path of the output file with extension (.edf)
46+
47+
optional arguments:
48+
-h, --help show this help message and exit
49+
-v, --version Return version
50+
-l LOG, --log LOG Logging level: info (default), debug
51+
-f SAMPLING_FREQ, --sampling_freq SAMPLING_FREQ
52+
resample to this frequency (in Hz)
53+
-b BEGTIME, --begtime BEGTIME
54+
start time in seconds from the beginning of the
55+
recordings
56+
-e ENDTIME, --endtime ENDTIME
57+
end time in seconds from the beginning of the
58+
recordings

docs/source/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ Contents:
88

99
introduction
1010
installation
11-
Modules, classes, functions<api/wonambi>
1211
analysis/index
12+
cmd
1313
gui/index
14+
Modules, classes, functions<api/wonambi>
1415
testing
1516
changelog
1617
todo

0 commit comments

Comments
 (0)