check_none_negative_values#

check_none_negative_values(array)[source]#

Replace negative numbers an a 1-D vector by the local closest non-zero value.

Parameters:

array (ndarray[Any, dtype[float64]]) – The wavelength vector of the spectrum.

Return type:

ndarray[Any, dtype[float64]]

Returns:

The vector with null values replaced.