Check return value of PyArray_FillWithScalar #34

Closed
kwgoodman opened this Issue Feb 24, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@kwgoodman
Owner

kwgoodman commented Feb 24, 2012

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.

@kwgoodman kwgoodman closed this in b9c590b Mar 31, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment