SimPEG Props

The API

Property

class SimPEG.Props.Model(doc, **kwargs)[source]
class_info = 'a numpy array'
class SimPEG.Props.Mapping(doc, **kwargs)[source]
class_info = 'a SimPEG Map'
property prop
property reciprocal
property reciprocal_prop
clear_props(instance)[source]
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 validate again on a coerced value must not modify the value further.

Note

This function should be able to handle instance=None since valid Property values are independent of containing HasProperties class. However, the instance is passed to error for a more verbose error message, and it may be used for additional optional validation.

get_property()[source]

Establishes access of Property values

as_pickle(instance)[source]
class SimPEG.Props.PhysicalProperty(doc, **kwargs)[source]
class_info = 'a physical property'
reciprocal = None
property mapping
clear_mappings(instance)[source]
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 validate again on a coerced value must not modify the value further.

Note

This function should be able to handle instance=None since valid Property values are independent of containing HasProperties class. However, the instance is passed to error for a more verbose error message, and it may be used for additional optional validation.

get_property()[source]

Establishes access of Property values

as_pickle(instance)[source]
summary(instance)[source]
class SimPEG.Props.Derivative(doc, **kwargs)[source]
physical_property = None
property mapping

The mapping looks through to the physical property map.

get_property()[source]

Establishes access of GettableProperty values

class SimPEG.Props.BaseSimPEG(**kwargs)[source]
class SimPEG.Props.Array(doc, **kwargs)[source]
class_info = 'a numpy, Zero or Identity array'
validate(instance, value)[source]

Determine if array is valid based on shape and dtype

class SimPEG.Props.Float(doc, **kwargs)[source]
class_info = 'a float, Zero or Identity'
validate(instance, value)[source]

Checks that value is a float and in min/max bounds

Non-float numbers are coerced to floats

class SimPEG.Props.Integer(doc, **kwargs)[source]
class_info = 'an Integer or *'
validate(instance, value)[source]

Checks that value is an integer and in min/max bounds