Skip to content

Commit

Permalink
removed more_itertools deps
Browse files Browse the repository at this point in the history
  • Loading branch information
manulera committed Dec 6, 2023
1 parent 8560727 commit bf8aee2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ docs/_build/
target/

.eggs

# mac files
.DS_Store
13 changes: 1 addition & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ pillow = { version = ">=8.4.0", optional = true }
pyparsing = { version = ">=2.4.7", optional = true }
requests = { version = ">=2.26.0", optional = true }
cai2 = { version = ">=1.0.5", optional = true }
more-itertools = "^10.1.0"
[tool.poetry.extras]
clipboard = ["pyperclip"]
gel = ["scipy", "matplotlib", "pillow"]
Expand Down
4 changes: 1 addition & 3 deletions src/pydna/dseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@

from Bio.Restriction import RestrictionBatch as _RestrictionBatch
from Bio.Restriction import CommOnly
# Pairwise only exists in normal itertools after python 3.10
from more_itertools import pairwise as _pairwise


class Dseq(_Seq):
Expand Down Expand Up @@ -1541,7 +1539,7 @@ def get_cutsite_pairs(self, cutsites):
# Add the first cutsite at the end, for circular cuts
cutsites.append(cutsites[0])

return list(_pairwise(cutsites))
return list(zip(cutsites, cutsites[1:]))


if __name__ == "__main__":
Expand Down

0 comments on commit bf8aee2

Please sign in to comment.