Skip to content

Commit 1d1d000

Browse files
fixup! refactor: rework timeseries parameter indexing API
1 parent 437d0a8 commit 1d1d000

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/parameter_indexing.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ function (gpo::GetParameterObserved)(ts::Timeseries, prob, i)
260260
map(i) do idx
261261
gpo(ts, prob, idx)
262262
end
263-
# gpo.((ts,), (prob,), i)
264263
end
265264
function (gpo::MultipleGetParameterObserved)(buffer::AbstractArray, ts::Timeseries, prob, i)
266265
for (buf_idx, time_idx) in zip(eachindex(buffer), i)
@@ -381,7 +380,7 @@ for (indexerTimeseriesType, timeseriesType) in [
381380
]
382381
@eval function (mpg::MultipleParametersGetter{$indexerTimeseriesType})(
383382
::$timeseriesType, prob)
384-
CallWith(prob).(mpg.getters)
383+
map(CallWith(prob), mpg.getters)
385384
end
386385
@eval function (mpg::MultipleParametersGetter{$indexerTimeseriesType})(
387386
buffer::AbstractArray, ::$timeseriesType, prob)

src/value_provider_interface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function get_parameter_timeseries_collection end
3636
Return an indexable collection containing the value of all parameters in `valp`, with
3737
parameters belonging to specific timeseries updated to different values. Each element in
3838
`args...` contains the timeseries index as the first value, and the saved parameter values
39-
in that partition. Not all parameter timeseries have to be updated using this method.
39+
in that partition. Not all parameter timeseries have to be updated using this method. If
40+
an in-place update can be performed, it should be done and the modified `valp` returned.
4041
"""
4142
function with_updated_parameter_timeseries_values end
4243

0 commit comments

Comments
 (0)