diff --git a/CHANGELOG.md b/CHANGELOG.md index a6e13e46..703e0f92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # History of changes +## Version 2.2.3 (in development) + +### Bug fixes + +* [Issue 274](https://github.com/MassimoCimmino/pygfunction/issues/274) - Fixed scalar assignment from ndim-1 array. It is deprecated as of `numpy` version `1.25`. Only ndim-0 arrays can be treated as scalars. + ## Version 2.2.2 (2023-01-09) ### Enhancements diff --git a/pygfunction/pipes.py b/pygfunction/pipes.py index d6476346..5a93d086 100644 --- a/pygfunction/pipes.py +++ b/pygfunction/pipes.py @@ -2259,7 +2259,7 @@ def update_thermal_resistances(self, R_ff, R_fp): # Outer pipe to borehole wall thermal resistance R_fg = thermal_resistances( self.pos, self.r_out[self._iOuter], self.b.r_b, self.k_s, self.k_g, - R_fp, J=self.J)[1][0] + R_fp, J=self.J)[1][0,0] # Delta-circuit thermal resistances self._Rd = np.zeros((2*self.nPipes, 2*self.nPipes)) self._Rd[self._iInner, self._iInner] = np.inf