Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Oct 6, 2022
1 parent 87cb159 commit 271b72a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion eeg_eyetracking_parser/braindecode_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def decode_subject(subject_nr, factors, epochs_kwargs, trigger,
tuple
A (results, metadata) tuple.
Results is a dict where keys are labels with 'overall' corresponding to
the overall (unlesioned) test, and the other keys corresponding to the
lesions as provided by the lesions parameter. Values are confusion
Expand Down
2 changes: 1 addition & 1 deletion readme-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ from datamatrix import convert as cnv
import time_series_test as tst

dm = cnv.from_pandas(metadata)
dm.pupil = eet.epochs_to_series(dm, cue_epoch)
dm.pupil = eet.epochs_to_series(dm, cue_epoch, baseline_trim=(-2, 2))
tst.plot(dm, dv='pupil', hue_factor='cue_eccentricity')
```

Expand Down
17 changes: 9 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ from datamatrix import convert as cnv
import time_series_test as tst

dm = cnv.from_pandas(metadata)
dm.pupil = eet.epochs_to_series(dm, cue_epoch)
dm.pupil = eet.epochs_to_series(dm, cue_epoch, baseline_trim=(-2, 2))
tst.plot(dm, dv='pupil', hue_factor='cue_eccentricity')
```

Expand Down Expand Up @@ -194,21 +194,21 @@ right away for subsequent calls. For more information, see



## <span style="color:purple">epochs\_to\_series</span>_(dm, epochs, baseline\_trim=(-2, 2))_
## <span style="color:purple">epochs\_to\_series</span>_(dm, epochs, baseline\_trim=None)_

Takes an Epochs or PupilEpochs object and converts it to a DataMatrix
SeriesColumn. If a baseline has been specified in the epoch, it is applied
to each row of the series separately. Rows where the mean baseline value
(z-scored) is not within the range indicated by `baseline_trim` are set to
`NAN`.
Takes an Epochs, PupilEpochs, or EpochsTFR object and converts it to a
DataMatrix SeriesColumn. If a baseline has been specified in the epoch, it
is applied to each row of the series separately. Rows where the mean
baseline value (z-scored) is not within the range indicated by
`baseline_trim` are set to `NAN`.

### Parameters

* **dm: DataMatrix**

A DataMatrix object to which the series belongs

* **epochs: Epochs or PupilEpochs**
* **epochs: Epochs, PupilEpochs, or EpochsTFR**

The source object with the epoch data.

Expand Down Expand Up @@ -415,3 +415,4 @@ values between 128 and 255 (inclusive).

`eeg_eyetracking_parser` is licensed under the [GNU General Public License
v3](http://www.gnu.org/licenses/gpl-3.0.en.html).

0 comments on commit 271b72a

Please sign in to comment.