Skip to content

Commit

Permalink
Merge pull request #460 from ajadczaksunriselabs/pandas-set-indexer
Browse files Browse the repository at this point in the history
bug-fix: Pandas set indexing error
  • Loading branch information
tompollard committed Jul 6, 2023
2 parents c0f1b12 + 1737eb0 commit 2cdb44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfdb/io/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ def get_contained_labels(self, inplace=True):
else:
raise Exception("No annotation labels contained in object")

contained_labels = label_map.loc[index_vals, :]
contained_labels = label_map.loc[list(index_vals), :]

# Add the counts
for i in range(len(counts[0])):
Expand Down

0 comments on commit 2cdb44a

Please sign in to comment.