Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
odunbar committed Jun 27, 2024
1 parent 0b7276d commit 81952ff
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/EnsembleTransformKalmanInversion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function update_ensemble!(
g::AbstractMatrix{FT},
process::TransformInversion;
failed_ens = nothing,
kwargs...
kwargs...,
) where {FT, IT}

# u: N_par × N_ens
Expand Down
33 changes: 33 additions & 0 deletions src/Observations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ export get_samples,
Structure that contains a (possibly stacked) observation. Defined by sample(s), noise covariance(s), and name(s)
Typical Constructor
```
Observation(
Dict(
"samples" => [1,2,3],
"covariances" => I(3),
"names" => "one_two_three"
),
)
can stack up multiple observations with combine_observations, or by providing vectors of samples, covariances and names to the dictionary.
# Fields
$(TYPEDFIELDS)
Expand Down Expand Up @@ -427,6 +439,27 @@ get_names(os::ObservationSeries) = os.names
get_current_minibatch_index(os::ObservationSeries) = os.current_minibatch_index
get_minibatcher(os::ObservationSeries) = os.minibatcher

"""
ObservationSeries
Structure that contains multiple `Observation`s along with an optional `Minibatcher`. Stores all observations in `EnsembleKalmanProcess`, as well as defining the behavior of the `get_obs`, `get_obs_noise_cov`, and `get_obs_noise_cov_inv` methods
Typical Constructor
```
ObservationSeries(
Dict(
"" => [1,2,3],
"covariances" => I(3),
"names" => "one_two_three"
),
)
can stack up multiple observations with combine_observations, or by providing vectors of samples, covariances and names to the dictionary.
# Fields
$(TYPEDFIELDS)
"""
function ObservationSeries(
obs_vec_in::AV,
minibatcher::MM,
Expand Down

0 comments on commit 81952ff

Please sign in to comment.