verify_params_dictionary: vp_100/mstar check is inverted
まだ誰も着手していません。
評価
調査の方向性
Start in verify_params_dictionary in eddy/rotationmap.py (around L1236), where the vp_100 and mstar branches are inverted, and check where default_parameters.yml fills in mstar=1.0 before that check runs. Done means that setting both keys raises the ValueError, a power-law request with vp_100 set and mstar None selects _vpow without error, and a default mstar no longer blocks the power-law path. Related issue #36 touches the same block.
索引モデルが issue の本文から書いたものです。
説明
Summary
The vp_100 / mstar check in verify_params_dictionary has its branches inverted.
# eddy/rotationmap.py, verify_params_dictionary, ~L1236
if params['vp_100'] is not None:
if params['mstar'] is not None:
params['vfunc'] = self._vpow
else:
raise ValueError("Cannot specify both `vp_100` and `mstar`.")
else:
params['vfunc'] = self._vkep
- Both
vp_100andmstarset: the power law is used silently. The error the message describes is never raised. vp_100set andmstar=None(a pure power-law request): this raises "Cannot specify bothvp_100andmstar", even though only one was specified.vp_100set,mstarleft out:mstardefaults to1.0indefault_parameters.yml, so this goes through the first branch and works. That is the only reason the power-law path appears to work. It also means the check can never tell an explicitmstarfrom the default.
Suggested fix
Swap the branches, and record whether mstar was supplied by the user before defaults are filled in, so that a power-law fit isn't rejected because of the default mstar=1.0. For example, check 'mstar' in params before the default-population loop, and raise only if both keys were given explicitly.
Related: #36 (same block; it never selects the pressure-corrected vfunc).
- 主要言語
- Python
- スター
- 23
- フォーク
- 11
- 平均マージ
- 28分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PlanetFormationLab/eddy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
PlanetFormationLab/eddy#36 ·
-
難易度 3/5 半日 初心者へのやさしさ 62/100
PlanetFormationLab/eddy#42 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
PlanetFormationLab/eddy#39 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
PlanetFormationLab/eddy#35 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PlanetFormationLab/eddy#34 ·
PlanetFormationLab/eddy の issue をすべて見る
似ている issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ianktoo/project-monitor#14 ·
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
btclib-org/btclib-wallet#478 ·
メンテナーはふだん 1 日以内に返信
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
btclib-org/btclib#2727 ·
メンテナーはふだん 1 日以内に返信
-
good first issue lead variant:container
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
radialmonster/orf-cleanroom#10 ·
メンテナーはふだん 1 日以内に返信
-
gdsa opencode: keep-alive cleanup trap fails with 'keepalive_pid: unbound variable'対応中かも @darribas が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100