DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays · Issue #293 · sot/mica · GitHub
More Web Proxy on the site http://driver.im/
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
/Users/javierg/SAO/miniconda3/envs/ska3-flight-2024.0rc8/lib/python3.11/site-packages/numpy/ma/core.py:429: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of -9999 to uint8 will fail in the future.
# Masked array col access ~100 times slower than ndarray so convert
dat_new = np.empty(dat.shape, dtype=dat.dtype)
for name in dat.dtype.names:
# Fill uint8 or int8 with 127 and others with -9999. All columns are numeric.
dat_new[name] = dat[name].filled(127 if dat[name].itemsize == 1 else -9999)
dat = dat_new
The following code:
Produces this warning
The exact point where this happens is https://github.com/sot/mica/blob/4.35.0/mica/archive/aca_l0.py#L237:
where data is an arbitrary array, but in the specific call that causes the warning during testing the type is
The text was updated successfully, but these errors were encountered: