check_numbers_valid#

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

Check the contents in array is valid (i.e., are numbers, are not infinite, are positive).

Parameters:

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

Returns:

error_flag – Flag indicating type of errors.

Return type:

int