Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
aaschwanden committed Oct 25, 2024
1 parent 56a6428 commit 8b2e354
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions analysis/analyze_scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from pism_ragis.likelihood import log_normal
from pism_ragis.logger import get_logger

logger = get_logger(__name__)
logger = get_logger("pism_ragis")

xr.set_options(keep_attrs=True)
plt.style.use("tableau-colorblind10")
Expand Down Expand Up @@ -1066,8 +1066,11 @@ def plot_obs_sims_3(
sim_var=sim_var,
)

with ProgressBar():
with ProgressBar() as pbar:
result = f.compute()
logger.info(
"Importance Sampling: Finished in %2.2f seconds", pbar.last_duration
)

importance_sampled_ids = result["exp_id_sampled"]
importance_sampled_ids["basin"] = importance_sampled_ids["basin"].astype(str)
Expand Down

0 comments on commit 8b2e354

Please sign in to comment.