Skip to content

Commit

Permalink
fix: remove erroneous getter returned from setp
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jul 31, 2024
1 parent c834a31 commit 513ec3b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/parameter_indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 513ec3b

Please sign in to comment.