From 513ec3b95813d7f8628abaaa1ca8200bf371622e Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Wed, 31 Jul 2024 13:21:09 +0530 Subject: [PATCH] fix: remove erroneous getter returned from setp --- src/parameter_indexing.jl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/parameter_indexing.jl b/src/parameter_indexing.jl index 0cfbb663..f64e7d1a 100644 --- a/src/parameter_indexing.jl +++ b/src/parameter_indexing.jl @@ -683,10 +683,6 @@ function _setp(sys, ::ArraySymbolic, ::SymbolicTypeTrait, p) if is_parameter(sys, p) idx = parameter_index(sys, p) return setp(sys, idx; run_hook = false) - elseif is_observed(sys, p) && (pobsfn = parameter_observed(sys, p)) !== nothing - ts_idxs = _postprocess_tsidxs(get_all_timeseries_indexes(sys, p)) - update_fn = Fix1Multiple(parameter_values_at_time, sys) - return GetParameterObserved{false}(ts_idxs, update_fn, pobsfn.observed_fn) end return setp(sys, collect(p); run_hook = false) end