Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to open opensignal file with multiple sensor data using opensignalsreader #5

Open
harshal5789 opened this issue Mar 30, 2020 · 1 comment

Comments

@harshal5789
Copy link

harshal5789 commented Mar 30, 2020

acq = OpenSignalsReader('FCz_EEG-ACC_standing ideal.txt')
Traceback (most recent call last):

File "", line 1, in
acq = OpenSignalsReader('FCz_EEG-ACC_standing ideal.txt')

File "C:\Users\HARSHAL\Anaconda3\lib\site-packages\opensignalsreader\opensignalsreader.py", line 92, in init
self._read_file(os_file)

File "C:\Users\HARSHAL\Anaconda3\lib\site-packages\opensignalsreader\opensignalsreader.py", line 124, in _read_file
self._read_sensordata()

File "C:\Users\HARSHAL\Anaconda3\lib\site-packages\opensignalsreader\opensignalsreader.py", line 208, in _read_sensordata
self._converted_signals.update({sensor: self._convert_data(sensor, data[:, -n])})

File "C:\Users\HARSHAL\Anaconda3\lib\site-packages\opensignalsreader\opensignalsreader.py", line 251, in _convert_data
output = self.transfer_functions[sensor](samples, self.sampling_resolution[sensor])

File "C:\Users\HARSHAL\Anaconda3\lib\site-packages\opensignalsreader\transfer_functions\bit.py", line 147, in eeg
_check_ranges(eeg_samples, 'EEG')

File "C:\Users\HARSHAL\Anaconda3\lib\site-packages\opensignalsreader\transfer_functions\bit.py", line 780, in _check_ranges
% (sensor, np.min(signal), units[sensor], ranges[sensor][1], units[sensor]), stacklevel=2)

TypeError: must be real number, not str

If i used opensignalsreader for single sensor data file then its perfectly work, multisensor data file gives above error.

help me...

@karoanja
Copy link

karoanja commented Nov 5, 2021

Hello, I am having the same issue. Can ypu please help with that? Ty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants