pygfunction icon indicating copy to clipboard operation
pygfunction copied to clipboard

Fix Numpy DeprecationWarning: Conversion of an array with ndim > 0 to a scalar

Open mitchute opened this issue 2 years ago • 0 comments

Addresses the following Numpy warning.

tests/pipes_test.py: 42 warnings
  /Users/mattmitchell/Projects/pygfunction/pygfunction/pipes.py:2268: 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._Rd[self._iOuter, self._iOuter] = R_fg

mitchute avatar Feb 13 '24 23:02 mitchute