Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed Aug 19, 2024
1 parent d2745b2 commit 64aa159
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions matrix_utils/mapped_matrix_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __matmul__(self, other):
return SparseMatrixDict(
{unroll(a, b): c @ d.matrix for a, c in self.items() for b, d in other.items()}
)
elif sparse.base.issparse(other):
elif sparse.issparse(other):
return SparseMatrixDict({a: b @ other for a, b in self.items()})
else:
raise TypeError(f"Can't understand matrix multiplication for type {type(other)}")
Expand Down Expand Up @@ -180,7 +180,7 @@ def __matmul__(self, other):
Note that the mapped matrix dict must come first, i.e. `MappedMatrixDict @ other`.
"""
if sparse.base.issparse(other):
if sparse.issparse(other):
return SparseMatrixDict(
[(key, value.matrix @ other) for key, value in self.matrices.items()]
)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ dependencies = [
# dependencies as strings with quotes, e.g. "foo"
# You can add version requirements like "foo>2.0"
"numpy",
"scipy",
"scipy>=1.10",
"pandas",
"bw_processing",
"bw_processing>=1.0",
"stats_arrays",
]

Expand Down
3 changes: 1 addition & 2 deletions tests/mmd.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import bw_processing as bwp
import numpy as np
import pytest
from scipy.sparse import csr_matrix
from scipy.sparse.base import issparse
from scipy.sparse import csr_matrix, issparse

from matrix_utils import ArrayMapper, MappedMatrix, MappedMatrixDict, SparseMatrixDict
from matrix_utils.errors import AllArraysEmpty
Expand Down

0 comments on commit 64aa159

Please sign in to comment.