VectorField not properly instantiated?
- 主要言語
- Python
- スター
- 11.2k
- フォーク
- 2.1k
- 平均マージ
- 5時間 49分
- マージ済み PR(30日)
- 3
説明
In [_2024/holograms/diffraction.py](https://github.com/3b1b/videos/blob/master/_2024/holograms/diffraction.py), there is an instance of VectorField that is missing the coordinate_system argument on line 400:
```
linear_field = VectorField(field_func, sample_points=wave_line.get_points()[::4], max_vect_len=2.0)
```
Is this an error or is the code supposed to run normally?
Error message:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[3], line 7
4 result[:, 1] = wave_amp_tracker.get_value() * wave.wave_func(points)
5 return result
----> 7 linear_field = VectorField(field_func, sample_points=wave_line.get_points()[::4], max_vect_len=2.0)
wave_line =
8 linear_field.always.update_vectors()
9 linear_field.set_stroke(WHITE, width=1.5, opacity=0.75)
TypeError: VectorField.__init__() missing 1 required positional argument: 'coordinate_system'
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
manim ライブラリの VectorField クラス定義を見て、__init__ のシグネチャを確認する。 エラーは「coordinate_system」引数が不足していることを示している。 コードベースの他の場所で VectorField がどのようにインスタンス化されているかを確認して、正しい使い方をチェックする。 _2024/holograms/diffraction.py の 400 行目を更新して、必要な引数を追加し、次にスクリプトを実行して修正を確認する。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 75/100