You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------IndexErrorTraceback (mostrecentcalllast)
CellIn[3], line41importscadnanoassc3design=sc.Design.from_scadnano_file('240210 zigzag growth.sc')
---->4design.write_oxview_file()
FileC:\Dropbox\git\scadnano-python-package\scadnano\scadnano.py:7877, inDesign.write_oxview_file(self, directory, filename, warn_duplicate_strand_names, use_strand_colors)
7862defwrite_oxview_file(self, directory: str='.', filename: Optional[str] =None,
7863warn_duplicate_strand_names: bool=True, use_strand_colors: bool=True) ->None:
7864"""Writes an oxView file rerpesenting this design. 7865 7866 :param directory: (...) 7875 of the strand. 7876 """->7877oxvsystem=self.to_oxview_format(warn_duplicate_strand_names=warn_duplicate_strand_names,
7878use_strand_colors=use_strand_colors)
7879write_file_same_name_as_running_python_script(json.dumps(oxvsystem), 'oxview', directory, filename)
FileC:\Dropbox\git\scadnano-python-package\scadnano\scadnano.py:7772, inDesign.to_oxview_format(self, warn_duplicate_strand_names, use_strand_colors)
7770importdatetime7771self._check_legal_design(warn_duplicate_strand_names)
->7772system=_convert_design_to_oxdna_system(self)
7774oxview_strands: List[Dict[str, Any]] = []
7775nuc_count=0FileC:\Dropbox\git\scadnano-python-package\scadnano\scadnano.py:9145, in_convert_design_to_oxdna_system(design)
9141elifisinstance(domain, Loopout):
9142# we place the loopout nucleotides at temporary nonsense positions and orientations9143# these will be updated later, for now we just need the base9144for_inrange(domain.length):
->9145base=seq[i]
9146center=_OxdnaVector()
9147normal=_OxdnaVector(0, -1, 0)
IndexError: stringindexoutofrange
One clue is that the loop variable _ is unused, and each iteration of the loop is accessing the same symbol seq[i] of the domain's sequence. So it might be that the fix is to replace lines 9144 and 9145 with
forjinrange(domain.length):
base=seq[j]
The text was updated successfully, but these errors were encountered:
The following design
240210 zigzag growth.sc.txt
raises an exception when executing
This is the error:
One clue is that the loop variable
_
is unused, and each iteration of the loop is accessing the same symbolseq[i]
of the domain's sequence. So it might be that the fix is to replace lines 9144 and 9145 withThe text was updated successfully, but these errors were encountered: