|
54 | 54 | # needed to use forward annotations: https://docs.python.org/3/whatsnew/3.7.html#whatsnew37-pep563 |
55 | 55 | from __future__ import annotations |
56 | 56 |
|
57 | | -__version__ = "0.19.2" # version line; WARNING: do not remove or change this line or comment |
| 57 | +__version__ = "0.19.3" # version line; WARNING: do not remove or change this line or comment |
58 | 58 |
|
59 | 59 | import collections |
60 | 60 | import dataclasses |
@@ -3916,7 +3916,7 @@ def set_linear(self) -> None: |
3916 | 3916 | """ |
3917 | 3917 | self.set_circular(False) |
3918 | 3918 |
|
3919 | | - def set_domains(self, domains: Iterable[Union[Domain, Loopout]]) -> None: |
| 3919 | + def set_domains(self, domains: Iterable[Union[Domain, Loopout, Extension]]) -> None: |
3920 | 3920 | """ |
3921 | 3921 | Sets the :any:`Domain`'s/:any:`Loopout`'s/:any:`Extension`'s of this :any:`Strand` to be `domains`, |
3922 | 3922 | which can contain a mix of :any:`Domain`'s, :any:`Loopout`'s, and :any:`Extension`'s, |
@@ -7840,8 +7840,8 @@ def to_oxview_format(self, warn_duplicate_strand_names: bool = True, |
7840 | 7840 | for d1, d2 in zip(d1range, d2range): |
7841 | 7841 | if ((sc_strand1.dna_sequence is not None) and |
7842 | 7842 | (sc_strand2.dna_sequence is not None) and |
7843 | | - (sc_strand1.dna_sequence[d1] != "?") and |
7844 | | - (sc_strand2.dna_sequence[d2] != "?") and |
| 7843 | + (sc_strand1.dna_sequence[d1] != DNA_base_wildcard) and |
| 7844 | + (sc_strand2.dna_sequence[d2] != DNA_base_wildcard) and |
7845 | 7845 | (wc(sc_strand1.dna_sequence[d1]) != sc_strand2.dna_sequence[d2])): |
7846 | 7846 | continue |
7847 | 7847 |
|
@@ -9141,8 +9141,7 @@ def _convert_design_to_oxdna_system(design: Design) -> _OxdnaSystem: |
9141 | 9141 | elif isinstance(domain, Loopout): |
9142 | 9142 | # we place the loopout nucleotides at temporary nonsense positions and orientations |
9143 | 9143 | # these will be updated later, for now we just need the base |
9144 | | - for _ in range(domain.length): |
9145 | | - base = seq[i] |
| 9144 | + for base in seq: |
9146 | 9145 | center = _OxdnaVector() |
9147 | 9146 | normal = _OxdnaVector(0, -1, 0) |
9148 | 9147 | forward = _OxdnaVector(0, 0, 1) |
|
0 commit comments