-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted assert of phys_min and phys_max into warnings (#266)
* Update highlevel.py Converted assert's into warnings. Reason: in some cases, storing an edf file fails because of roundoff errors: e.g. `phys_min -3565.82 vs. signal_min 3565.8200000000000006` will fail in write_edf (but shouldn't) * Removed references to distutils. Distutils is deprecated as mentioned in #267 * Updated tests for warnings in case phys_min > sig.min() * Added threshold for warning in case of small differences between sig_min and physical_min Updated tests as well. * Fix unit test.
- Loading branch information
1 parent
b5df218
commit 9f8dde4
Showing
3 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters