You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subtract_psf, used in BasicPSFPhotometry.nstar (and thus all classes based off this class) will fail with ValueError: Can't add array. Small array too large. if fitshape has shape equal in at least one length to data.shape.
This is due to subtract_psf using astropy.nddata.add_array if subshape is None evaluates false. add_array fails to check if sizes are greater than or equal; I plan to put in a pull request through astropy to fix this. However, for exactly equal fitshape and data shape if subshape is None could be amended to if subshape is None or np.all(i == j for i, j in zip(fitshape, data.shape)) or equivalent.
The text was updated successfully, but these errors were encountered:
subtract_psf
, used inBasicPSFPhotometry.nstar
(and thus all classes based off this class) will fail withValueError: Can't add array. Small array too large.
iffitshape
has shape equal in at least one length todata.shape
.This is due to
subtract_psf
usingastropy.nddata.add_array
ifsubshape is None
evaluates false.add_array
fails to check if sizes are greater than or equal; I plan to put in a pull request through astropy to fix this. However, for exactly equalfitshape
anddata
shapeif subshape is None
could be amended toif subshape is None or np.all(i == j for i, j in zip(fitshape, data.shape))
or equivalent.The text was updated successfully, but these errors were encountered: