We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94e3673 commit 87cfa93Copy full SHA for 87cfa93
1 file changed
simpeg_drivers/driver.py
@@ -466,7 +466,14 @@ def get_regularization(self):
466
neighbors = cell_neighbors(reg_func.regularization_mesh.mesh)
467
468
# Adjustment for 2D versus 3D problems
469
- components = "sxz" if "2d" in self.params.inversion_type else "sxyz"
+ components = (
470
+ "sxz"
471
+ if (
472
+ "2d" in self.params.inversion_type
473
+ or "1d" in self.params.inversion_type
474
+ )
475
+ else "sxyz"
476
477
weight_names = ["alpha_s"] + [f"length_scale_{k}" for k in components[1:]]
478
functions = []
479
for comp, weight_name, fun in zip(
0 commit comments