SimPEG.utils.validate_integer#
- SimPEG.utils.validate_integer(property_name, var, min_val=-inf, max_val=inf)[source]#
- Validate integer property - Parameters:
- Returns:
- int
- Returns the input variable as a int once validated 
 
 - Notes - The variable is casted to an int, therefore if a float is passed, the decimal value is discarded and a valid integer is returned.