NREL-Sienna / InfrastructureSystems.jl

Utility package for Sienna's simulation infrastructure
https://nrel-sienna.github.io/InfrastructureSystems.jl/
BSD 3-Clause "New" or "Revised" License
38 stars 20 forks source link

resolution calculation fails for SingleTimeSeries #236

Closed jd-lara closed 3 years ago

jd-lara commented 3 years ago

When transforming a SingleTimeSeries into a Horizon = 1 forecast, getting the horizon resolution fails

This is the line with the issue.

https://github.com/NREL-SIIP/InfrastructureSystems.jl/blob/c995be87d78f43fc9426ecc39470f09a4b8215b0/src/single_time_series.jl#L198

jd-lara commented 3 years ago

In fact this issue manifests itself during the get_window function call if len = 1