Skip to content

Commit

Permalink
Remove generators from sparse vstack, which no longer work with scipy…
Browse files Browse the repository at this point in the history
… 1.12
  • Loading branch information
kburns committed Jan 27, 2024
1 parent d253239 commit 1885f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dedalus/core/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2346,7 +2346,7 @@ def matrix_coupling(self, *vars):

def subproblem_matrix(self, subproblem):
"""Build operator matrix for a specific subproblem."""
return sparse.vstack(arg.expression_matrices(subproblem, [self.operand])[self.operand] for arg in self.args)
return sparse.vstack([arg.expression_matrices(subproblem, [self.operand])[self.operand] for arg in self.args])

def check_conditions(self):
"""Check that operands are in a proper layout."""
Expand Down Expand Up @@ -2424,7 +2424,7 @@ def matrix_coupling(self, *vars):

def subproblem_matrix(self, subproblem):
"""Build operator matrix for a specific subproblem."""
return sparse.vstack(arg.expression_matrices(subproblem, [self.operand])[self.operand] for arg in self.args)
return sparse.vstack([arg.expression_matrices(subproblem, [self.operand])[self.operand] for arg in self.args])

def check_conditions(self):
"""Check that operands are in a proper layout."""
Expand Down

0 comments on commit 1885f70

Please sign in to comment.