You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error happens, seemingly randomly (!), when I load a eeg file in script_RASR_comparison() and try to convert the index using the float_index_to_time_index function. Sometimes the script works perfectly fine start to begin and sometimes I got this error.
/Users/louis/anaconda3/envs/timeflux_rasr-env/lib/python3.7/site-packages/pyxdf/pyxdf.py:578: RuntimeWarning: invalid value encountered in greater
threshold_samples * stream.tdiff))
Warning : Channel description is empty
Traceback (most recent call last):
File "/Users/louis/anaconda3/envs/timeflux_rasr-env/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-58dd86da87e9>", line 1, in <module>
runfile('/Volumes/Ext/git/timeflux_rasr/notebooks/script_RASR_comparison.py', wdir='/Volumes/Ext/git/timeflux_rasr/notebooks')
File "/Applications/PyCharm CE with Anaconda plugin.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm CE with Anaconda plugin.app/Contents/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Volumes/Ext/git/timeflux_rasr/notebooks/script_RASR_comparison.py", line 61, in <module>
df_eeg_raw = float_index_to_time_index(df_eeg_raw)
File "/Volumes/Ext/git/timeflux_rasr/utils/utils.py", line 202, in float_index_to_time_index
df.index = df.index.map(datetime.utcfromtimestamp)
File "/Users/louis/anaconda3/envs/timeflux_rasr-env/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 4881, in map
new_values = super()._map_values(mapper, na_action=na_action)
File "/Users/louis/anaconda3/envs/timeflux_rasr-env/lib/python3.7/site-packages/pandas/core/base.py", line 1300, in _map_values
new_values = map_f(values, mapper)
File "pandas/_libs/lib.pyx", line 2228, in pandas._libs.lib.map_infer
ValueError: Invalid value NaN (not a number)
The text was updated successfully, but these errors were encountered:
The following error happens, seemingly randomly (!), when I load a eeg file in script_RASR_comparison() and try to convert the index using the float_index_to_time_index function. Sometimes the script works perfectly fine start to begin and sometimes I got this error.
The text was updated successfully, but these errors were encountered: