Open braingram opened 2 weeks ago
Probably need to do: bitvalue = np.array(bitvalue).astype(dqarr.dtype)
This doesn't appear to be entirely a numpy issue as the devdeps are failing with a similar error: https://github.com/spacetelescope/romancal/actions/runs/9662228750/job/26651704014#step:10:1924
> return np.logical_not(np.bitwise_and(dqarr, ~bitvalue)).astype(np.uint8)
E OverflowError: Python integer -1 out of bounds for uint32
when numpy 1.26 is installed. https://github.com/spacetelescope/romancal/actions/runs/9662228750/job/26651704014#step:10:583
~Numpy 2.0~ EDIT: devdeps changes are causing failures for the
build_mask
function in resample:Full run (which also show webbpsf errors): https://github.com/spacetelescope/romancal/actions/runs/9569032524/job/26380655507?pr=1278#step:10:2228
This looks to be due to the use of a bitwise not on a python number (instead of a numpy scalar). This produces a negative number and an error with numpy 2.
With numpy < 2:
With numpy 2: