When trying to write a DataFrame to an EDF file, with physical maximums/minimums in precisions over 16 bits, the text defaults to something like 'Physical minimum for channel xx...' even when it should be 'Physical maximum for channel xx...'.
An example of the error
/home/grey/.local/lib/python3.10/site-packages/pyedflib/edfwriter.py:124: UserWarning: Physical minimum for channel 30 (EEG P10) is -37.96628460442817, which has 18 chars, however, EDF+ can only save 8 chars, will be truncated to -37.9662, some loss of precision is to be expected
warnings.warn('Physical minimum for channel {} ({}) is {}, which has {} chars, '\
/home/grey/.local/lib/python3.10/site-packages/pyedflib/edfwriter.py:131: UserWarning: Physical minimum for channel 30 (EEG P10) is 34.704298604236044, which has 18 chars, however, EDF+ can only save 8 chars, will be truncated to 34.70429, some loss of precision is to be expected.
warnings.warn('Physical minimum for channel {} ({}) is {}, which has {} chars, '\
when using this as the channel info for each of the signal headers:
When trying to write a DataFrame to an EDF file, with physical maximums/minimums in precisions over 16 bits, the text defaults to something like 'Physical minimum for channel xx...' even when it should be 'Physical maximum for channel xx...'.
An example of the error
when using this as the channel info for each of the signal headers: