Skip to content

fs paramater specification causing problem in load_physio #10

Description

@me-pic

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

1.
2.
3.

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions