InfrastructureSystems.jl icon indicating copy to clipboard operation
InfrastructureSystems.jl copied to clipboard

method to retrieve initial time with SingleTimeSeries

Open jd-lara opened this issue 3 years ago • 2 comments

we need a method similar to get_forecast_initial_timestamp(sys) but for systems with only SingleTimeSeries

jd-lara avatar Aug 28 '21 00:08 jd-lara

We currently support the possibility for inconsistent time series. Different lengths and initial times but same resolution across components.

This presents a problem for some simulations since we need to check the consistency of the time series across devices. We need a function that checks that all the SingleTimeSeries have the same initial time and length and also get the initial_time if they are consistent.

It might be possible to still permit inconsistent time series but requires calculating the intersection of time that is valid and that might be more cumbersome.

jd-lara avatar Aug 28 '21 00:08 jd-lara

#255 added check_time_series_consistency for SingleTimeSeries. It will return the initial timestamp and length if all time series are consistent. Otherwise, it will throw an exception. This will likely satisfy most use cases for this request. We can leave this issue open to track the addition of determining the intersection of time series with different start and end times.

daniel-thom avatar Aug 31 '21 01:08 daniel-thom