Enhance interpolation speed
メンテナーはふだん 3 日以内に返信
@steven-murray がすでに取り組んでいます。
2022年2月15日 から。
評価
この issue はまだ評価されていません。
説明
There are a lot of checks that are done in the interpolation methods, some of which are more compute-intensive than others. For example, #1144 adds the ability to skip one of these checks.
Furthermore, calling eg. _interp_az_za_simple always creates the phi_use and theta_use arrays, even when they are not required because the interpolation functions have already been computed and stored. This is not hugely computationally expensive, but does give an estimated ~30% slowdown compared to just calling the saved spline directly (this number was something I noticed for a single use case, so is highly subject to uncertainty/variability).
There may be ways to deal with this a bit more intelligently. Some examples:
- Let the
interp()function to know ahead of time if these arrays need to be computed. However, this is a bit tricky because it's not a single spline that's created, but multiple splines (for each pol/spw/feed/freq), and while one may be stored, others that are requested may not be. We'd then have to put in a little check for that. - Another way would be to have documentation/methods that allow directly calling the saved interpolations without any other checks, at the user's own peril.
- Another way would be to refactor the existing interpolation private methods to call a function that returned the interpolators themselves, and then used those to interpolate to the new az/za. This new intermediate function could then be called by users to save copies of the interpolation functions in whatever way they choose, to be called in any way they choose.
There might be other ways as well.
Having written this down, my vote would be to do something like (2) -- have an explicit method called something like "az_za_simple_fast" that just assumes the splines have been computed before and goes and uses them, and errors if they're not there. This could be called from interp() if a parameter like no_checks is set.
- 主要言語
- Python
- スター
- 103
- フォーク
- 40
- 平均マージ
- 4日 11時間
- マージ済み PR(30日)
- 13
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RadioAstronomySoftwareGroup/pyuvdata のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
RadioAstronomySoftwareGroup/pyuvdata#1751 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
RadioAstronomySoftwareGroup/pyuvdata#1750 ·
メンテナーはふだん 3 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 48/100
RadioAstronomySoftwareGroup/pyuvdata#1749 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
RadioAstronomySoftwareGroup/pyuvdata#1748 ·
メンテナーはふだん 3 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
RadioAstronomySoftwareGroup/pyuvdata#1743 ·
メンテナーはふだん 3 日以内に返信
RadioAstronomySoftwareGroup/pyuvdata の issue をすべて見る
似ている issue
-
Internal Errorオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
frappe/frappe_docker#2071 ·
メンテナーはふだん 1 日以内に返信
-
bug python
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
traceloop/openllmetry#4717 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
The-Pocket/PocketFlow#161 ·
-
comp/desktop P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#157702 ·
メンテナーはふだん 1 日以内に返信
-
scibench_physics / scibench_chemistry: a correct answer scores 0 when the unit has a power of ten対応中かも @BahaaMattar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
EvolvingLMMs-Lab/lmms-eval#1699 ·
メンテナーはふだん 1 日以内に返信