Skip to content

Commit 710410b

Browse files
authored
Merge pull request #299 from UC-Davis-molecular-computing/dev
Dev
2 parents 1507102 + a220c32 commit 710410b

3 files changed

Lines changed: 18 additions & 9 deletions

File tree

environment.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ name: scadnano-test
33
channels:
44
- defaults
55
dependencies:
6-
- xlwt=1.3.0=py37_0
6+
- python=3.7
7+
- xlwt=1.3.0=py37_0
8+
- pip
9+
- pip:
10+
- sphinx
11+
- sphinx_rtd_theme
12+
- openpyxl

readthedocs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ formats: all
1616

1717
# Optionally set the version of Python and requirements required to build your docs
1818
python:
19-
version: 3.7
2019
install:
2120
- method: setuptools
2221
path: .
2322

2423
conda:
25-
environment: environment.yml
24+
environment: environment.yml
25+
26+
build:
27+
os: "ubuntu-22.04"
28+
tools:
29+
python: "mambaforge-22.9"

scadnano/scadnano.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
# needed to use forward annotations: https://docs.python.org/3/whatsnew/3.7.html#whatsnew37-pep563
5555
from __future__ import annotations
5656

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
5858

5959
import collections
6060
import dataclasses
@@ -3916,7 +3916,7 @@ def set_linear(self) -> None:
39163916
"""
39173917
self.set_circular(False)
39183918

3919-
def set_domains(self, domains: Iterable[Union[Domain, Loopout]]) -> None:
3919+
def set_domains(self, domains: Iterable[Union[Domain, Loopout, Extension]]) -> None:
39203920
"""
39213921
Sets the :any:`Domain`'s/:any:`Loopout`'s/:any:`Extension`'s of this :any:`Strand` to be `domains`,
39223922
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,
78407840
for d1, d2 in zip(d1range, d2range):
78417841
if ((sc_strand1.dna_sequence is not None) and
78427842
(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
78457845
(wc(sc_strand1.dna_sequence[d1]) != sc_strand2.dna_sequence[d2])):
78467846
continue
78477847

@@ -9141,8 +9141,7 @@ def _convert_design_to_oxdna_system(design: Design) -> _OxdnaSystem:
91419141
elif isinstance(domain, Loopout):
91429142
# we place the loopout nucleotides at temporary nonsense positions and orientations
91439143
# 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:
91469145
center = _OxdnaVector()
91479146
normal = _OxdnaVector(0, -1, 0)
91489147
forward = _OxdnaVector(0, 0, 1)

0 commit comments

Comments
 (0)