When writing to EDF a signal with very high values (e.g. 1e9), the file gets created successfully, but it is an invalid EDF. This happens because pyedflib doesn't take into account overflow of the fixed number of ascii bytes used to write the physical max and min.
Before generating this situation, the signal should be validated and an exception should be raised.
We could also change the code to use the more modern highlevel interface of pyedflib, it would slightly simplify things and maybe also solve this problem (but I'm not sure about that).
When writing to EDF a signal with very high values (e.g. 1e9), the file gets created successfully, but it is an invalid EDF. This happens because pyedflib doesn't take into account overflow of the fixed number of ascii bytes used to write the physical max and min.
Before generating this situation, the signal should be validated and an exception should be raised.