brandondube / prysm

physical optics: integrated modeling, phase retrieval, segmented systems, polynomials and fitting, sequential raytracing...
https://prysm.readthedocs.io/en/stable/
MIT License
267 stars 46 forks source link

Deprecated reference to `np.bool` in `_composite_hexagonal_aperture` #118

Open julesfowler opened 2 weeks ago

julesfowler commented 2 weeks ago

When you call the CompositeHexagonalApertuere class / _composite_hexagonal_aperture function, it looks like there is a reference to the np.bool type -- which was deprecated with Numpy 1.20.0. Any use of np.bool should be replace with bool -- previously this was just an alias for the builtin type.

In the meantime, a somewhat hacky work around is simply to manually define that alias before import, i.e.: np.bool = bool.

Full error message attached. Screen Shot 2024-11-05 at 10 58 17 AM

brandondube commented 2 weeks ago

This was fixed some time ago -- please use the latest master/main branch

brandondube commented 1 week ago

@julesfowler are you alright if I close this issue?