mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-27 19:48:52 +08:00
wrap directives list
This commit is contained in:
@@ -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