Skip to content

Commit

Permalink
Extract first element of the 2d array
Browse files Browse the repository at this point in the history
  • Loading branch information
MassimoCimmino committed Apr 22, 2024
1 parent f82ebe3 commit b53aa9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygfunction/pipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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][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
Expand Down

0 comments on commit b53aa9f

Please sign in to comment.