Skip to content

Commit

Permalink
add some more convenience functions for ObservationSeries
Browse files Browse the repository at this point in the history
  • Loading branch information
odunbar committed Jun 21, 2024
1 parent 5e0c301 commit 291f59c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/EnsembleKalmanProcess.jl
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,17 @@ function get_obs(ekp::EnsembleKalmanProcess; build = true)
return get_obs(get_observation_series(ekp), build = build)
end

"""
update_minibatch!(ekp::EnsembleKalmanProcess)
update to the next minibatch in the ObservationSeries
"""
function update_minibatch!(ekp::EnsembleKalmanProcess)
return update_minibatch!(get_observation_series(ekp))
end

function get_current_minibatch(ekp::EnsembleKalmanProcess)
return get_current_minibatch(get_observation_series(ekp))

Check warning on line 519 in src/EnsembleKalmanProcess.jl

View check run for this annotation

Codecov / codecov/patch

src/EnsembleKalmanProcess.jl#L518-L519

Added lines #L518 - L519 were not covered by tests
end

"""
construct_initial_ensemble(
Expand Down Expand Up @@ -736,8 +747,8 @@ function update_ensemble!(
end

# update to next minibatch (if minibatching)
observation_series = get_observation_series(ekp)
next_minibatch = update_minibatch!(observation_series)
next_minibatch = update_minibatch!(ekp)

return nothing

end
Expand Down

0 comments on commit 291f59c

Please sign in to comment.