Skip to content

Commit

Permalink
remove scipy as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Apr 10, 2024
1 parent e58215e commit 7641599
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion fwdpy11/_types/table_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Iterable

import numpy as np
import scipy.sparse # type: ignore

from .._fwdpy11 import Edge, MutationRecord, Node, Site, ll_TableCollection

Expand Down Expand Up @@ -182,6 +181,7 @@ def _ndfs(
later.
"""
from . import TreeIterator
import scipy.sparse # type: ignore

shapes = tuple(len(i) + 1 for i in samples)
dok_JFS = [scipy.sparse.dok_matrix(shapes, dtype=np.int32) for i in windows]
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies = [
"attrs >= 20.3.0",
"black",
"numpy < 2.0",
"scipy",
"tskit >= 0.5.6",
"demes ~= 0.2.2",
"Deprecated",
Expand Down
1 change: 0 additions & 1 deletion requirements/minimal_install_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ attrs >= 20.3.0
demes == 0.2.2
numpy < 2
tskit >= 0.5.6
scipy
Deprecated

0 comments on commit 7641599

Please sign in to comment.