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

Abierto
#236 5 comentarios 0 reacciones 2 asignados Ver en GitHub

@tg359 ya está trabajando en esto.

Desde el 2/8/2024.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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

Lenguaje dominante
Python
Estrellas
3
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de BHoM/LadybugTools_Toolkit

Todos los issues de BHoM/LadybugTools_Toolkit

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.