We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6757ee commit dd10bdfCopy full SHA for dd10bdf
1 file changed
simpeg/directives/_vector_models.py
@@ -4,6 +4,7 @@
4
BaseSaveGeoH5,
5
InversionDirective,
6
SaveModelGeoH5,
7
+ SphericalUnitsWeights,
8
Update_IRLS,
9
UpdateIRLS,
10
UpdateSensitivityWeights,
@@ -215,8 +216,13 @@ def endIter(self):
215
216
elif isinstance(directive, UpdateSensitivityWeights):
217
directive.every_iteration = True
218
219
+ spherical_units = SphericalUnitsWeights(
220
+ amplitude=self.regularizations.objfcts[0].mapping,
221
+ angles=self.regularizations.objfcts[1:],
222
+ )
223
directiveList = [
- ProjectSphericalBounds()
224
+ ProjectSphericalBounds(),
225
+ spherical_units,
226
] + self.inversion.directiveList.dList
227
self.inversion.directiveList = directiveList
228
0 commit comments