annotation.py:get_contained_labels (1335): pandas throws TypeError: Passing a set as an indexer is not supported. Use a list instead.
まだ誰も着手していません。
- 主要言語
- Jupyter Notebook
- スター
- 853
- フォーク
- 322
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Using python version of libwfdb 4.1.2 which is according to pypi the latest.
Since lately when accessing the annotations i do get the error
TypeError: Passing a set as an indexer is not supported. Use a list instead.
This is caused by passing the following indexing tuple in line
index_vals = {1, 5}
# annotation.py(1355)get_contained_labels
contained_labels = label_map.loc[index_vals, :]
for now i do fix this by replacing the above line by
contained_labels = label_map.loc[list(index_vals), :]
and any further occurence.
The reason is that pandas has droped support for settype index arround version 2.1.3 which i do have currently installed.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
annotation.py の get_contained_labels から始め、特に 1335-1355 行付近のインデックス指定を確認し、set ベースの label_map インデックス指定がほかに存在する箇所も調査してください。影響を受ける annotation のアクセスパスを pandas 2.1.3 以降で検証し、set インデクサーの TypeError が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- pandas, python
- 領域
- data
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100