faroit / faroit/stempeg

warnings.warning() does not exist

オープン
#45 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
107
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

説明

**Bug Description:**
When using `stempeg` as part of [`musdb`](https://github.com/sigsep/sigsep-mus-db), I encountered the following error:

```python
stem_durations = np.array([t.shape[0] for t in stems])
if not (stem_durations == stem_durations[0]).all():
> warnings.warning("Stems differ in length and were shortend")
E AttributeError: module 'warnings' has no attribute 'warning'

/usr/local/lib/python3.9/site-packages/stempeg/read.py:299: AttributeError
```
`warning()` does not exist after checking the `warnings` package.

**Suggested Solution:**
`warnings.warning()` -> `warnings.warn()` since `warn()` exists.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。