Edfio

Latest version: v0.4.2

Safety actively analyzes 629994 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.2

Added
- Lazy load raw signals from local EDF files. Lazy loading is supported and enabled by default when passing a `str` or `pathlib.Path` object to the `read_edf` function. The behavior can be controlled using the `lazy_load_data` parameters of the `read_edf` function ([48](https://github.com/the-siesta-group/edfio/pull/48)).
- Public getter for digital signal values called `digital` ([48](https://github.com/the-siesta-group/edfio/pull/48)).

0.4.1

Added
- Make EDF+ header fields `patient` and `recording` more tolerant regarding non-compliant inputs: omitted subfields are returned as `X` instead of throwing an exception ([18](https://github.com/the-siesta-group/edfio/pull/18)).
- Allow reading from `tempfile.SpooledTemporaryFile[bytes]` ([36](https://github.com/the-siesta-group/edfio/pull/36)).
- Enable the reading of EDF files where the filesize does not match the header information. Incomplete data records will be truncated ([41](https://github.com/the-siesta-group/edfio/pull/41)).

Fixed
- Allow reading more non-standard starttime and startdate fields ([30](https://github.com/the-siesta-group/edfio/pull/30)).

0.4.0

Changed
- Exclude EDF+ annotation signals from `Edf.signals`, `Edf.num_signals`, and `Edf.drop_signals()` ([25](https://github.com/the-siesta-group/edfio/pull/25)).
- Provide more concise `__repr__` for `Edf` and `EdfSignal` ([26](https://github.com/the-siesta-group/edfio/pull/26)).
- `Edf.append_signals()` now inserts new signals after the last ordinary (i.e. non-annotation) signal ([29](https://github.com/the-siesta-group/edfio/pull/29)).

Added
- Expand `~` (tilde) to the user's home directory in `edf_file` argument of `read_edf()` and `target` argument of `Edf.write()` ([23](https://github.com/the-siesta-group/edfio/pull/23)).

Fixed
- Avoid floating point errors sometimes preventing the creation of an Edf with signals that are actually compatible in duration ([15](https://github.com/the-siesta-group/edfio/pull/15)).
- Allow reading EDF+ startdate and birthdate with non-uppercase month ([19](https://github.com/the-siesta-group/edfio/pull/19)).
- Disallow setting signal label to `"EDF Annotations"` ([28](https://github.com/the-siesta-group/edfio/pull/28)).

0.3.1

Added
- Add optional parameter `sampling_frequency` to `EdfSignal.update_data()` for changing the sampling frequency of the signal when updating its data ([13](https://github.com/the-siesta-group/edfio/pull/13)).
- Add `update_data_record_duration` method to class `Edf` for updating the `data_record_duration` field of the EDF header ([14](https://github.com/the-siesta-group/edfio/pull/14)).

0.3.0

Changed
- `Edf.signals` can not be set anymore. Use `Edf.append_signals()`, `Edf.drop_signals()`, and `EdfSignal.update_data()` instead ([10](https://github.com/the-siesta-group/edfio/pull/10)).

Added
- Allow creating a new Edf containing only annotations ([7](https://github.com/the-siesta-group/edfio/pull/7)).
- Add `EdfSignal.update_data` for overwriting the physical values with an array of equal length ([10](https://github.com/the-siesta-group/edfio/pull/10)).
- Allow adding new signals to an Edf with `Edf.append_signals` ([10](https://github.com/the-siesta-group/edfio/pull/10)).

Fixed
- Disallow creating a new Edf where local patient/recording identification subfields are empty strings ([6](https://github.com/the-siesta-group/edfio/pull/6)).
- Allow retrieving the starttime from a file where the reserved field indicates it is an EDF+C but no annotations signal is present ([8](https://github.com/the-siesta-group/edfio/pull/8)).
- Disallow removing the EDF+ timekeeping signal with `Edf.drop_signals` ([10](https://github.com/the-siesta-group/edfio/pull/10)).

0.2.1

Fixed
- Disallow creating a new Edf with a recording startdate not between 1985-01-01 and 2084-12-31 ([5](https://github.com/the-siesta-group/edfio/pull/5)).

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.