Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Check return value of PyArray_FillWithScalar #34
Bottleneck uses the numpy function PyArray_FillWithScalar to (typically) fill an array with np.nan. The function PyArray_FillWithScalar returns -1 if the fill was unsuccessful but bottlneck does not check the return value. Should check and then raise an exception if the return value is -1.