divide by invalid value
還沒有人認領這個 Issue。
評估
研究方向
Reproduce by running climada/engine/unsequa/test/test_unsequa.py and climada/engine/test/test_cost_benefit.py with warnings turned into errors. The listed sites are climada/util/interpolation.py:236 and climada/engine/cost_benefit.py:1190, plus several SALib analyze modules (hdmr, sobol, dgsm, fast, pawn, rbd_fast). The issue does not say what the fix should be, so first decide whether each divide needs a guard in CLIMADA or whether the input data triggers it. Done means the warnings are gone or deliberately handled, and the tests still pass.
由索引模型根據 Issue 內容生成。
描述
RuntimeWarning
divide by zero encountered in log10
Occurrences
- climada.util.interpolation:236
(2 times during tests)
RuntimeWarning
invalid value encountered in divide
Occurrences
- SALib.analyze.hdmr:688
- SALib.analyze.hdmr:694
- SALib.analyze.hdmr:697
- SALib.analyze.sobol:141
Raised in
- climada.engine.unsequa.test.test_unsequa
- climada.test.test_engine
(6 times during tests)
RuntimeWarning
invalid value encountered in scalar divide
Occurrences
- SALib.analyze.dgsm:132
- SALib.analyze.fast:117
- SALib.analyze.hdmr:661
- SALib.analyze.pawn:142
- SALib.analyze.rbd_fast:128
- climada.engine.cost_benefit:1190
Raised in
- climada.engine.unsequa.test.test_unsequa
- climada.engine.test.test_cost_benefit
(6 times during tests)
- 主要語言
- Jupyter Notebook
- 星號
- 478
- 分支
- 166
- 平均合併
- 1 天 20 小時
- 30 天內合併 PR
- 2
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CLIMADA-project/climada_python 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
CLIMADA-project/climada_python#1337 ·
-
bug
難度 2/5 1-3 小時 新手友好度 85/100
CLIMADA-project/climada_python#1336 ·
-
CartoDB basemaps now need an API key (somewhat urgent)可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug
難度 2/5 1-3 小時 新手友好度 72/100
CLIMADA-project/climada_python#1332 · 4 則留言 · 1 個 reaction ·
-
warnings
難度 2/5 1-3 小時 新手友好度 65/100
CLIMADA-project/climada_python#1241 ·
-
ResourceWarning未關閉warnings
難度 2/5 1-3 小時 新手友好度 62/100
CLIMADA-project/climada_python#1239 ·
查看 CLIMADA-project/climada_python 的全部 Issue
相似的 Issue
-
Add: Rai 3 BIS未關閉check:passed streams:add
難度 1/5 1-3 小時 新手友好度 68/100
維護者通常 2 天內回覆
-
check:passed feeds:edit
難度 1/5 1 小時以內 新手友好度 82/100
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
elder-plinius/V3R1T4S#634 ·
維護者通常 1 天內回覆
-
neuromuscular obsolete
難度 2/5 1-3 小時 新手友好度 68/100
monarch-initiative/mondo#10816 ·
維護者通常 2 天內回覆