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

Aperta
#236 5 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@tg359 ci sta già lavorando.

Dal 2/8/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
Python
Stelle
3
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BHoM/LadybugTools_Toolkit

Tutte le issue di BHoM/LadybugTools_Toolkit

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.