Tridesclous error when running on a Windows 11 fresh install: ""module 'numpy' has no attribute 'in1d'""
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 85/100
調査の方向性
トレースバックは tridesclous/pruningshears.py の explore_split_loop を指しており、そこで np.in1d が AttributeError を発生させます。その関数を読み、ほかに影響を受ける使用箇所がないか確認してから、関連する Tridesclous のテストを実行してください。インストール済みの NumPy のバージョンで報告されたエラーが発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi, I've been testing a range of sorters with a fresh install on Windows 11 and here is bugs that happens with Tridesclous:
"module 'numpy' has no attribute 'in1d'"
I think due to the fact that it is using a deprecated numpy function ( in1d instead of isin, see https://numpy.org/doc/2.2/reference/generated/numpy.in1d.html) in explore_split_loop`.
Here's the latest lines of the error:
labels = pruningshears.do_the_job()
File "C:\Users\eleonord.conda\envs\spint\Lib\site-packages\tridesclous\pruningshears.py", line 135, in do_the_job
cluster_labels = self.explore_split_loop()
File "C:\Users\eleonord.conda\envs\spint\Lib\site-packages\tridesclous\pruningshears.py", line 697, in explore_split_loop
ind_trash_label = ind_l0[np.in1d(labels_l0, bad_labels)]
^^^^^^^
File "C:\Users\eleonord.conda\envs\spint\Lib\site-packages\numpy_init_.py", line 769, in getattr
raise AttributeError(f"module {name!r} has no attribute {attr!r}")
AttributeError: module 'numpy' has no attribute 'in1d'. Did you mean: 'int16'?
This happens both with a toy dataset or with real data.
Solution: replacing np.in1d with np.isin in tridesclous.pruningshears seems to fix the error. Should I submit this somewhere else? Thanks!
- 主要言語
- Python
- スター
- 859
- フォーク
- 286
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 52
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SpikeInterface/spikeinterface のほかの issue
-
testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
SpikeInterface/spikeinterface#4756 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SpikeInterface/spikeinterface#4510 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
PCA fitting can overflow LAPACK's 32-bit indexing when fitting all spikes対応中かも @kushaangupta が 4 日前に担当しました。 オープンpostprocessing
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
SpikeInterface/spikeinterface#4868 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
SpikeInterface/spikeinterface#4860 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
SpikeInterface/spikeinterface#4859 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
SpikeInterface/spikeinterface の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
Status: Triaged Type: Enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
canonical/craft-store#448 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
good first issue research size:s skill:numerics sub-issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SKaiNET-developers/SKaiNET#1372 ·
メンテナーはふだん 1 日以内に返信
-
debt
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoft/vscode-flake8#601 ·
メンテナーはふだん 1 日以内に返信