Skip to content

Commit

Permalink
fix: bug in regional test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Jul 26, 2024
1 parent 3fed11d commit 0a0a851
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/invert4geom/regional.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,8 @@ def regional_constraints(
spline_damping_values.append(None)
else:
spline_damping_values = spline_damping
if spline_damping_values is None:
spline_damping_values = [None]
spline = utils.best_spline_cv(
coordinates=(
constraints_df.easting,
Expand Down
1 change: 1 addition & 0 deletions tests/test_regional.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def test_regional_constraints(test_input):
grid_method=test_input,
grav_obs_height=1e3,
source_depth=100e3,
spline_damping=1e-3,
)

# grid = df.set_index(["northing", "easting"]).to_xarray()
Expand Down

0 comments on commit 0a0a851

Please sign in to comment.