sauriii98 / Motor-Imagery-Classification

Motor Imagery Classification for Stroke Rehabilitation
2 stars 0 forks source link

Issue with the code #1

Open SHIKA99 opened 1 year ago

SHIKA99 commented 1 year ago

Hello, I'm currently trying to run this code, but I'm having issues with this part of the code and the error states as below:


KeyError Traceback (most recent call last) in <cell line: 2>() 1 idx = 4 ----> 2 marker = get_markers(mat, idx)

in get_markers(mat_data, index) 5 6 # Example code: ----> 7 markers = mat_data['markers'][index] 8 return markers 9 idx = 4

KeyError: 'markers'

I have attached the part where the error is found. Hope you could help me out!! Screenshot 2023-06-16 022105

Thankk youu!!

fina1e commented 2 months ago

Yes, it needs to be fixed. Just delete the idx for this function.