SimPEG.utils.validate_direction#
- SimPEG.utils.validate_direction(property_name, obj, dim=3)[source]#
Validate if an object represents a direction.
- Parameters:
- property_name
str
The name of the property being set
- obj{“x”, “y”, “z”}
or
(dim
)numpy.ndarray
The object to test
- dim
int
,optional
The dimension of the vector
- property_name
- Returns:
- (
dim
)numpy.ndarray
- (