Skip to content

Commit ebdc776

Browse files
committed
Use deprecation warning
1 parent ac495c1 commit ebdc776

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

simpeg_drivers/potential_fields/magnetic_vector/params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def validate_lower_bound(self):
140140
warn(
141141
"Parameter 'lower_bound' for Magnetic Vector Inversion has been deprecated. "
142142
"Defaulting to the negative value of 'upper_bound'.",
143+
DeprecationWarning,
143144
stacklevel=1,
144145
)
145146
self.lower_bound = None

tests/run_tests/driver_mvi_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def test_magnetic_vector_bounds_run(
168168
# Run the inverse
169169
active_cells = ActiveCellsOptions(topography_object=topography)
170170
with warns(
171-
UserWarning, match="Parameter 'lower_bound' for Magnetic Vector Inversion"
171+
DeprecationWarning,
172+
match="Parameter 'lower_bound' for Magnetic Vector Inversion",
172173
):
173174
params = MVIInversionOptions(
174175
geoh5=geoh5,

0 commit comments

Comments
 (0)