Consider updating pvlib.tracking.singleaxis() to return zeros (or similar) for nighttime instead of NaNs
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
The NaN output comes from the night-time branch of singleaxis in pvlib/tracking.py, around the line the issue links. Read the function and the tests in pvlib/tests/test_tracking.py to see which outputs are NaN after sunset. Done means the maintainers have agreed on zero versus NaN for each output, or an opt-in parameter, with tests and docs updated. The design choice is still open, so settle it in the thread before coding.
由索引模型根據 Issue 內容生成。
描述
Is your feature request related to a problem? Please describe.
pvlib.tracking.singleaxis returns NaNs for intervals where the sun is below the horizon. This can result in NaNs propogating to lots of other pvlib outputs and can cause confusion, other issues, etc. See https://groups.google.com/g/pvlib-python/c/ZeVmTC7eddY as an example.
It appears to happen here:
Describe the solution you'd like
Perhaps change the default to be zero for surface_tilt and tracker_theta (and whatever is most appropriate for aoi and surface_azimuth). Or have an optional input for pvlib.tracking.singleaxis to specify whether it returns NaNs or numbers at night.
Describe alternatives you've considered
Applying .fillna(0) (or similar) to the output of pvlib.tracking.singleaxis is what I typically do.
Additional context
It looks like this zero vs nan situation was briefly discussed in https://github.com/pvlib/pvlib-python/issues/569. It seems it would be worth further discussion. Is there a significant reason that NaN is the output at night?
fillna(0) is used in the gallery here and here, but not here.
Tagging @cwhanse.
- 主要語言
- Python
- 星號
- 1.7k
- 分支
- 1.2k
- 平均合併
- 3 天 18 小時
- 30 天內合併 PR
- 13
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
pvlib/pvlib-python 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
pvlib/pvlib-python#2903 · 5 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
use offset parameter instead of calculating bday in cdrom可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 1/5 1 小時以內 新手友好度 92/100
pvlib/pvlib-python#2902 ·
維護者通常 1 天內回覆
-
Add an example or documentation on using 'bhi' from ERA5可能重新可做 @anshurajbisoyi98-ctrl 於 15 天前認領,目前沒有進行中的 PR。 未關閉
難度 2/5 1-3 小時 新手友好度 66/100
pvlib/pvlib-python#2880 · 2 則留言 ·
維護者通常 1 天內回覆
-
Use "long-wave" rather than "infra-red" to refer to thermal radiation.可能重新可做 @Rahi-padwal 於 253 天前認領,目前沒有進行中的 PR。 未關閉api easy
難度 2/5 1-3 小時 新手友好度 62/100
pvlib/pvlib-python#2653 · 6 則留言 ·
維護者通常 1 天內回覆
-
question
難度 1/5 1-3 小時 新手友好度 72/100
pvlib/pvlib-python#2637 · 10 則留言 ·
維護者通常 1 天內回覆
查看 pvlib/pvlib-python 的全部 Issue
相似的 Issue
-
debt
難度 2/5 1-3 小時 新手友好度 68/100
microsoft/vscode-flake8#601 ·
維護者通常 1 天內回覆
-
nonews refactor
難度 2/5 1-3 小時 新手友好度 75/100
Uninett/nav#4255 · 1 則留言 · 1 個 reaction ·
維護者通常 3 天內回覆
-
namespace operations
難度 1/5 1 小時以內 新手友好度 70/100
EclipseFdn/open-vsx.org#14421 ·
維護者通常 1 天內回覆
-
untriaged
難度 2/5 1-3 小時 新手友好度 78/100
ubuntu/ubuntu-project-docs#850 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆