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

fixes #231: Design.add_full_crossover and Design.add_half_crossover should check for existing crossovers #232

Closed dave-doty closed 2 years ago

dave-doty commented 2 years ago

Description

Added error-checking code when automatically adding nicks when Design.add_full_crossover.

Related Issue

231

Motivation and Context

Ill-defined behavior happened previously, editing the design in strange ways. This explicitly fails and alerts the user they need to add the crossover somewhere that a crossover does not already exist.

How Has This Been Tested?

Some unit tests where added testing Design.add_full_crossover and Design.add_half_crossover when there is already a crossover at the position.