SimPEG Props¶
The API¶
Property¶
-
class
SimPEG.props.Mapping(*args, **kwargs)[source]¶ -
class_info= 'a SimPEG Map'¶
-
property
prop¶
-
property
reciprocal¶
-
property
reciprocal_prop¶
-
validate(instance, value)[source]¶ Check if the value is valid for the Property
If valid, return the value, possibly coerced from the input value. If invalid, a ValueError is raised.
Warning
Calling
validateagain on a coerced value must not modify the value further.Note
This function should be able to handle
instance=Nonesince valid Property values are independent of containing HasProperties class. However, the instance is passed toerrorfor a more verbose error message, and it may be used for additional optional validation.
-
-
class
SimPEG.props.PhysicalProperty(*args, **kwargs)[source]¶ -
class_info= 'a physical property'¶
-
reciprocal= None¶
-
property
mapping¶
-
validate(instance, value)[source]¶ Check if the value is valid for the Property
If valid, return the value, possibly coerced from the input value. If invalid, a ValueError is raised.
Warning
Calling
validateagain on a coerced value must not modify the value further.Note
This function should be able to handle
instance=Nonesince valid Property values are independent of containing HasProperties class. However, the instance is passed toerrorfor a more verbose error message, and it may be used for additional optional validation.
-
-
class
SimPEG.props.Derivative(*args, **kwargs)[source]¶ -
physical_property= None¶
-
property
mapping¶ The mapping looks through to the physical property map.
-
-
class
SimPEG.props.LocationVector(*args, **kwargs)[source]¶ -
class_info= 'A location array (1-dimensional numpy array)'¶
-
-
class
SimPEG.props.HasModel(*args, **kwargs)[source]¶ Optional Properties:
model (
Model): Inversion model., a numpy array of <class ‘float’>, <class ‘int’> with shape (*, *) or (*)
-
property
model¶ model (
Model): Inversion model., a numpy array of <class ‘float’>, <class ‘int’> with shape (*, *) or (*)
-
property
needs_model¶ True if a model is necessary