Skip to content

Commit

Permalink
only import dedup_cython when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlya authored Nov 20, 2023
1 parent 96bafff commit 1735da4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pairtools/lib/dedup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from scipy.sparse import coo_matrix
from scipy.sparse.csgraph import connected_components

from . import dedup_cython, pairsam_format
from . import pairsam_format
from .stats import PairCounter

from .._logging import get_logger
Expand Down Expand Up @@ -339,6 +339,8 @@ def streaming_dedup_cython(
-------
"""
from . import dedup_cython

maxind = max(c1ind, c2ind, p1ind, p2ind, s1ind, s2ind)
if bool(extra_cols1) and bool(extra_cols2):
maxind = max(maxind, max(extra_cols1), max(extra_cols2))
Expand Down

0 comments on commit 1735da4

Please sign in to comment.