Skip to content

Commit

Permalink
Change functions moved from libres_facade
Browse files Browse the repository at this point in the history
  • Loading branch information
frode-aarstad committed Jan 2, 2024
1 parent 5b4041c commit 0125544
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions semeio/workflows/ahm_analysis/ahmanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ def run(
target_name,
)
# Get the prior scalar parameter distributions
prior_data = self.facade.load_all_gen_kw_data(
self.storage.get_ensemble_by_name(prior_name)
)
ensemble = self.storage.get_ensemble_by_name(prior_name)
prior_data = ensemble.load_all_gen_kw_data()
try:
raise_if_empty(
dataframes=[
Expand Down Expand Up @@ -200,7 +199,7 @@ def run(
)
# Get the updated scalar parameter distributions
self.reporter.publish_csv(
group_name, self.facade.load_all_gen_kw_data(target_ensemble)
group_name, target_ensemble.load_all_gen_kw_data()
)

active_obs.at["ratio", group_name] = (
Expand All @@ -223,7 +222,7 @@ def run(
calc_kolmogorov_smirnov(
dkeysf,
prior_data,
self.facade.load_all_gen_kw_data(target_ensemble),
target_ensemble.load_all_gen_kw_data(),
)
)
field_output[group_name] = _get_field_params(
Expand Down

0 comments on commit 0125544

Please sign in to comment.