Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
emma58 committed Jul 8, 2024
1 parent f016a6b commit b913ced
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pyomo/repn/plugins/standard_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,9 @@ def _create_csc(self, data, index, index_ptr, nnz, nCol):
# the C (numpy) side, as opposed to ceating the large [0] *

Check warning on line 580 in pyomo/repn/plugins/standard_form.py

View workflow job for this annotation

GitHub Actions / lint/style-and-typos

"ceating" should be "creating".
# (nCol + 1) array on the Python side and transfer it to C
# (numpy)
return self._csr_matrix(data, index, index_ptr, len(index_ptr) - 1, nCol).tocsc()
# return scipy.sparse.csr_array(
# (data, index, index_ptr), [len(index_ptr) - 1, nCol]
# ).tocsc()
return self._csr_matrix(
data, index, index_ptr, len(index_ptr) - 1, nCol
).tocsc()

data = self._to_vector(itertools.chain.from_iterable(data), nnz, np.float64)
# data = list(itertools.chain(*data))
Expand Down

0 comments on commit b913ced

Please sign in to comment.