From af19b4cae0ecec8adde8bb40bdcfb9f6dea8ab0d Mon Sep 17 00:00:00 2001 From: benjamink Date: Mon, 26 May 2025 09:39:48 -0700 Subject: [PATCH 1/3] 2d inversions gradient rotation is visible --- simpeg_drivers-assets/uijson/direct_current_2d_inversion.ui.json | 1 - .../uijson/induced_polarization_2d_inversion.ui.json | 1 - 2 files changed, 2 deletions(-) diff --git a/simpeg_drivers-assets/uijson/direct_current_2d_inversion.ui.json b/simpeg_drivers-assets/uijson/direct_current_2d_inversion.ui.json index 1b210f5e..7c197dff 100644 --- a/simpeg_drivers-assets/uijson/direct_current_2d_inversion.ui.json +++ b/simpeg_drivers-assets/uijson/direct_current_2d_inversion.ui.json @@ -289,7 +289,6 @@ "label": "Gradient rotation", "optional": true, "enabled": false, - "visible": false, "parent": "mesh", "value": "" }, diff --git a/simpeg_drivers-assets/uijson/induced_polarization_2d_inversion.ui.json b/simpeg_drivers-assets/uijson/induced_polarization_2d_inversion.ui.json index c2c7c09d..21f71dd6 100644 --- a/simpeg_drivers-assets/uijson/induced_polarization_2d_inversion.ui.json +++ b/simpeg_drivers-assets/uijson/induced_polarization_2d_inversion.ui.json @@ -300,7 +300,6 @@ "label": "Gradient rotation", "optional": true, "enabled": false, - "visible": false, "parent": "mesh", "value": "" }, From 39b11c37d8f52abd396539eb4e6144f0ee0ca99b Mon Sep 17 00:00:00 2001 From: benjamink Date: Mon, 26 May 2025 09:40:57 -0700 Subject: [PATCH 2/3] update the chi_factors to allow inversion to run for more IRLS steps when run from main. --- tests/run_tests/driver_2d_rotated_gradients_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/run_tests/driver_2d_rotated_gradients_test.py b/tests/run_tests/driver_2d_rotated_gradients_test.py index 59446708..ba2876c2 100644 --- a/tests/run_tests/driver_2d_rotated_gradients_test.py +++ b/tests/run_tests/driver_2d_rotated_gradients_test.py @@ -150,6 +150,8 @@ def test_dc2d_rotated_grad_run( percentile=100, lower_bound=0.1, cooling_rate=1, + starting_chi_factor=1.0, + chi_factor=0.1, ) params.write_ui_json(path=tmp_path / "Inv_run.ui.json") From fcc1b4dbcc346ebbb6697d6920cefd6e2b1d03e8 Mon Sep 17 00:00:00 2001 From: benjamink Date: Mon, 26 May 2025 13:40:50 -0700 Subject: [PATCH 3/3] s_norm to zero --- tests/run_tests/driver_2d_rotated_gradients_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run_tests/driver_2d_rotated_gradients_test.py b/tests/run_tests/driver_2d_rotated_gradients_test.py index ba2876c2..84592171 100644 --- a/tests/run_tests/driver_2d_rotated_gradients_test.py +++ b/tests/run_tests/driver_2d_rotated_gradients_test.py @@ -140,7 +140,7 @@ def test_dc2d_rotated_grad_run( model_type="Resistivity (Ohm-m)", starting_model=100.0, reference_model=100.0, - s_norm=1.0, + s_norm=0.0, x_norm=0.0, z_norm=0.0, gradient_type="components",