simpeg.utils.validate_location_property#

simpeg.utils.validate_location_property(property_name, var, dim=None)[source]#

Validate a location

Parameters:
property_namestr

The name of the property being set

vararray_like

The input variable

dimint, optional

The dimension; i.e. 1, 2 or 3

Returns:
numpy.ndarray

Returns the location once validated