OndaEDF provides functionality to convert/import/export EDF files to/from Onda recordings; see the
onda_to_edf docs/tests for details.
EDF Formatting Expectations
While OndaEDF attempts to be somewhat robust to more common nonstandard/noncompliant quirks that often appear in EDF files "in the wild", the package generally expects the caller to perform any necessary preprocessing to their EDFs to ensure they comply with the EDF/EDF+ standards/specifications, as well as a few other expectations to facilitate conversion to Onda.
These expectations are as follows:
EDF.Signallabels follow the standard "$TYPE $SPECIFICATION" structure defined by the EDF standards, and signal types documented by the aforementioned standard (EEG, EKG, etc.) are labeled in compliance with naming conventions defined by the standard.
EDF.Signals that are matched as channels to a common
Onda.Signalmust have the same
physical_dimension, sample rate, and sample count.
physical_dimensionfield for any given
EDF.Signalis a value supported by
Note that callers can additionally use the
custom_extractors argument to
edf_to_onda_signals to workaround some of these expectations; see the
import_edf docstring for more details.