ehpor / hcipy

A framework for performing optical propagation simulations, meant for high contrast imaging, in Python.

Home Page:https://hcipy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numpy 1.25 deprecation warning

ehpor opened this issue · comments

tests/test_optics.py: 40 warnings
  D:\a\1\s\tests\test_optics.py:174: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    deformable_mirror.actuators[i] = np.random.randn(1)

tests/test_optics.py: 30 warnings
  D:\a\1\s\hcipy\optics\segmented_mirror.py:101: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    self.actuators[segment_id] = piston