Skip to content

Commit

Permalink
Merge pull request #91 from SciML/as/fix-arrsym-observed
Browse files Browse the repository at this point in the history
fix: remove erroneous getter returned from setp
  • Loading branch information
AayushSabharwal authored Jul 31, 2024
2 parents c834a31 + 513ec3b commit a5be447
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 a5be447

Please sign in to comment.