diff --git a/src/component.jl b/src/component.jl index 94d87115b..24e5a4dde 100644 --- a/src/component.jl +++ b/src/component.jl @@ -727,7 +727,7 @@ function get_single_time_series_transformed_parameters( end end - throw(ArgumentError("component $(get_name(component)) does not have SingleTimeSeries")) + return end function _get_single_time_series_transformed_parameters( diff --git a/src/system_data.jl b/src/system_data.jl index 6271ad3c1..fea2af924 100644 --- a/src/system_data.jl +++ b/src/system_data.jl @@ -517,6 +517,10 @@ function transform_single_time_series!( horizon, interval, ) + if params === nothing + # This component doesn't have SingleTimeSeries. + continue + end # This will throw if there is another forecast type with conflicting parameters. check_params_compatibility(data.time_series_params, params) end