pygfunction
pygfunction copied to clipboard
Fix Numpy DeprecationWarning: Conversion of an array with ndim > 0 to a scalar
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