spatialtopology / spacetop-prep

code for transferring data and preprocessing
MIT License
0 stars 3 forks source link

[BUG] KeyError 0 returned when attempting alignment check of tonic/phasic EDA: nk.events_plot(event_stimuli, scr_processed) #46

Closed Michael-Sun closed 8 months ago

Michael-Sun commented 10 months ago

Which module is this from?

physio

What is the issue?

plot_eda_phasic = nk.events_plot(event_stimuli, scr_processed[["EDA_Tonic", "EDA_Phasic"]]) returns KeyError: 0

What was your expected behavior?

Tonic and Phasic EDA alignment should be checked.

How can we reproduce this?

Run the above code with the following parameters: event_stimuli=event_stimuli=physio_df[['ttl']]

Any additional context?

Michael-Sun commented 8 months ago

This has to deal with the definition of event_stimuli, which needs to be a dictionary.