Running `hours_sunrise_sunset` plot fails on locations where the sun doesn't set

オープン
#236 コメント 5 件 リアクション 0 件 担当者 2 名 GitHub で見る

@tg359 がすでに取り組んでいます。

2024年8月2日 から。

評価

この issue はまだ評価されていません。

説明

type:bug
Description:

When running hours_sunrise_sunset on a location where any of the sunset times cannot be retrieved, the plot fails and doesn not output anything (due to a.normalize() not working when sunset/sunrise times are null).

Steps to reproduce:

Run hours_sunrise_sunset on a location where the sun does not set (this includes twilight zones), e.g. Aberdeen.

Expected behaviour:

A plot that shows the hours sunrise sunset where in the middle, the block spans the height of the plot.

Test file(s):

using a suitable location

hours_sunrise_sunset(location=location)
Additional Comments

This also appears to affect hours_sunlight as well, but doesn't show errors and plots the following:
sun_up_hours

主要言語
Python
スター
3
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BHoM/LadybugTools_Toolkit のほかの issue

BHoM/LadybugTools_Toolkit の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。