The edf.py module has become a bit incomprehensible and confusing because it contains multiple classes and 1600+ lines of code. The same is true for test_edf.py. It might make sense to refactor these into pairs of source files that comprise smaller groups of logic. A suggestion:
(test_)edfplus_annotations.py: The test are actually already in a separate source file, but the related logic could also be moved to a separate file.
(test_)edf_signal: Everything that is related to a signal, its header, and its data.
(test_)edf_header: Everything that is related to EDF and EDF+ header fields.
The
edf.py
module has become a bit incomprehensible and confusing because it contains multiple classes and 1600+ lines of code. The same is true fortest_edf.py
. It might make sense to refactor these into pairs of source files that comprise smaller groups of logic. A suggestion:(test_)edfplus_annotations.py
: The test are actually already in a separate source file, but the related logic could also be moved to a separate file.(test_)edf_signal
: Everything that is related to a signal, its header, and its data.(test_)edf_header
: Everything that is related to EDF and EDF+ header fields.