Skip to content

Commit

Permalink
Values need to be switched to tuples for hstack in numpy 1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-cogliati-inl committed Dec 11, 2024
1 parent eb1680d commit 8d8d388
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ravenframework/Models/PostProcessors/LimitSurface.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ def run(self, inputIn = None, returnListSurfCoord = False, exceptionGrid = None,
if self.name != exceptionGrid:
self.listSurfPointNegative, self.listSurfPointPositive = listSurfPoint[self.name][:nNegPoints-1],listSurfPoint[self.name][nNegPoints:]
if merge == True:
evals = np.hstack(evaluations.values())
listSurfPoints = np.hstack(listSurfPoint.values())
surfPoint = np.hstack(self.surfPoint.values())
evals = np.hstack(tuple(evaluations.values()))
listSurfPoints = np.hstack(tuple(listSurfPoint.values()))
surfPoint = np.hstack(tuple(self.surfPoint.values()))
returnSurface = (surfPoint, evals, listSurfPoints) if returnListSurfCoord else (surfPoint, evals)
else:
returnSurface = (self.surfPoint, evaluations, listSurfPoint) if returnListSurfCoord else (self.surfPoint, evaluations)
Expand Down

0 comments on commit 8d8d388

Please sign in to comment.