check_numbers_valid#

PySeismoSoil.helper_generic.check_numbers_valid(array: ndarray) → int[source]#

Check the contents in array is valid.

Valid contents are numbers that are not infinite and are positive.

Parameters:

array (np.ndarray) – The numpy array to be tested.

Returns:

error_flag – Flag indicating type of errors.

Return type:

int