Skip to content

Commit

Permalink
fix: bug for checking gravity inside topo region with density/zref cv
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Oct 9, 2024
1 parent 7cdb2b0 commit e96099a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/invert4geom/inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,6 @@ def run_inversion_workflow( # equivalent to monte_carlo_full_workflow

log.debug("inversion kwargs: %s", inversion_kwargs)

utils._check_gravity_inside_topography_region(grav_df, starting_prisms) # pylint: disable=protected-access
###
###
# SINGLE INVERSION
Expand All @@ -1470,7 +1469,7 @@ def run_inversion_workflow( # equivalent to monte_carlo_full_workflow
# run only the inversion with specified damping, density, and zref values
if (run_damping_cv is False) & (run_zref_or_density_cv is False):
log.info("running individual inversion")

utils._check_gravity_inside_topography_region(grav_df, starting_prisms) # pylint: disable=protected-access
if inversion_kwargs.get("plot_dynamic_convergence", False) is True:
with utils._log_level(logging.WARN): # pylint: disable=protected-access
inversion_results = run_inversion(
Expand All @@ -1497,6 +1496,7 @@ def run_inversion_workflow( # equivalent to monte_carlo_full_workflow
###
if run_damping_cv is True:
log.info("running damping cross validation")
utils._check_gravity_inside_topography_region(grav_df, starting_prisms) # pylint: disable=protected-access
study, inversion_results = optimization.optimize_inversion_damping(
training_df=grav_df[grav_df.test == False], # noqa: E712 pylint: disable=singleton-comparison
testing_df=grav_df[grav_df.test == True], # noqa: E712 pylint: disable=singleton-comparison
Expand Down

0 comments on commit e96099a

Please sign in to comment.