-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello,
I wanted to examine synthetic data samples to open a data file I collected with the Delsys EMG device. However, I get the following error in synthetic data from resurfemg package.
Traceback (most recent call last):
File "/home/utkb/resurfemg/resurfemg/lib/python3.12/site-packages/resurfemg_dashboard/callbacks_update_data.py", line 88, in toggle_modal
emg_timeseries = EmgDataGroup(
^^^^^^^^^^^^^
File "/home/utkb/resurfemg/resurfemg/lib/python3.12/site-packages/resurfemg/data_connector/data_classes.py", line 1222, in __init__
super().__init__(
File "/home/utkb/resurfemg/resurfemg/lib/python3.12/site-packages/resurfemg/data_connector/data_classes.py", line 1070, in __init__
new_timeseries = TimeSeries(
^^^^^^^^^^^
File "/home/utkb/resurfemg/resurfemg/lib/python3.12/site-packages/resurfemg/data_connector/data_classes.py", line 84, in __init__
self.param['fs'] = int(1/(t_data[1:]-t_data[:-1]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: only length-1 arrays can be converted to Python scalars
And also, i can read this warnings from console:
Loaded .npy, extracting data ...
Warning: Metadata fs not found. Set it manually.
Warning: Metadata labels not found. Set it manually.
Warning: Metadata units not found. Set it manually.
I couldn't work out how to format my data before importing it, either. For example, where does the resurfacing package take labels from? Could you point me in the right direction?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels