mirror of
https://github.com/wassname/simpeg.git
synced 2026-10-30 13:50:07 +08:00
wrap directives list
This commit is contained in:
1 parent
18f0e61780
commit
f865106db9
1 file changed
+2
@@ -24,6 +24,8 @@ class BaseInversion(object):
|
||||
|
||||
@directiveList.setter
|
||||
def directiveList(self, value):
|
||||
if type(value) is list:
|
||||
value = Directives.DirectiveList(value)
|
||||
assert isinstance(value, Directives.DirectiveList), 'Must be a DirectiveList'
|
||||
self._directiveList = value
|
||||
self._directiveList.inversion = self
|
||||
|
||||
Reference in new issue
Block a user