UC-Davis-molecular-computing / scadnano-python-package

Python scripting library for generating designs readable by scadnano.
https://scadnano.org
MIT License
13 stars 7 forks source link

Cadnano2 import of crossover to same helix #214

Closed tcosmo closed 2 years ago

tcosmo commented 2 years ago

Description

Crossovers to same helix as in attached filed were badly handled. crossover-to-same-helix.zip

The fix consisted in adding one more case to the condition that decides whether or not to add a crossover :

Screenshot 2022-02-01 at 17 52 26

I have added hopefully clearer comments.

Related Issue

https://github.com/UC-Davis-molecular-computing/scadnano-python-package/issues/209

Motivation and Context

Fixes https://github.com/UC-Davis-molecular-computing/scadnano-python-package/issues/209

How Has This Been Tested?

tests.scadnano_tests.TestImportCadnanoV2.test_crossover_to_same_helix.sc

Screenshots (if appropriate):