Expected Behavior
In the generate_physio function, when load_physio is called, it uses the fs specified in the parameters of generate_physio. However, for '.phys' files, this causes problem since the fs information can be retrieved from the file directly. So having fs=None (default value) lead to a fs value of NOTHING (enum type) after loading the file...
See also discussion here.
Actual Behavior
Steps to Reproduce the Problem
Specifications
- Python version:
- peakdet version:
- Platform:
Possible solution
Since the fs parameters should still be specified if loading any file format that is not .phys, I would propose to create another mode to separate those different format rather than grouping everything under mode="physio"
Expected Behavior
In the
generate_physiofunction, whenload_physiois called, it uses thefsspecified in the parameters ofgenerate_physio. However, for '.phys' files, this causes problem since thefsinformation can be retrieved from the file directly. So havingfs=None(default value) lead to afsvalue ofNOTHING(enum type) after loading the file...See also discussion here.
Actual Behavior
Steps to Reproduce the Problem
Specifications
Possible solution
Since the
fsparameters should still be specified if loading any file format that is not.phys, I would propose to create another mode to separate those different format rather than grouping everything undermode="physio"