MIT-LCP / wfdb-python

Native Python WFDB package
MIT License
742 stars 300 forks source link

MGH/MF Waveform Database annotation not loading #255

Closed smolendawid closed 4 years ago

smolendawid commented 4 years ago

Reading annotations from MGH/MF Waveform Database (mghdb) results in the following error:

annotation = wfdb.rdann(record_path, extension='ari')

KeyError: 'Passing list-likes to .loc or [] with any missing labels is no longer supported, see https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike'

smolendawid commented 4 years ago

Obviously downgrading pandas helps

Lucas-Mc commented 4 years ago

Hey @smolendawid, thanks for posting your find! I fixed the bug for this case and it might show up in the future since there's other implementations of .loc but I'm going to wait to see if any bugs pop up since it acts fine right now.

smolendawid commented 4 years ago

Great, thank you!