Skip to content

Commit

Permalink
fix: suppress info logs for run inversionwith kfolds CV
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Aug 2, 2024
1 parent e15d3de commit 3bb59d2
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions src/invert4geom/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -1458,20 +1458,14 @@ def optimize_inversion_zref_density_contrast_kfolds(
]
}
# run the inversion workflow
log.addFilter(log_filter)
final_inversion_results = inversion.run_inversion_workflow(
create_starting_prisms=True,
starting_prisms_kwargs={
"zref": zref,
"density_contrast": density_contrast,
},
calculate_regional_misfit=True,
regional_grav_kwargs=regional_grav_kwargs_original,
fname=fname,
plot_convergence=True,
**new_kwargs,
)
log.removeFilter(log_filter)
with utils.log_level(logging.WARN):
final_inversion_results = inversion.run_inversion_workflow(
create_starting_prisms=True,
calculate_regional_misfit=True,
regional_grav_kwargs=regional_grav_kwargs_original,
plot_convergence=True,
**new_kwargs,
)

if plot_cv is True:
if kwargs.get("zref_limits", None) is None:
Expand Down

0 comments on commit 3bb59d2

Please sign in to comment.