Skip to content

Helix order when importing from cadnano#217

Merged
dave-doty merged 2 commits intodevfrom
bug_helix_order_issue
Feb 12, 2022
Merged

Helix order when importing from cadnano#217
dave-doty merged 2 commits intodevfrom
bug_helix_order_issue

Conversation

@tcosmo
Copy link
Copy Markdown
Collaborator

@tcosmo tcosmo commented Feb 12, 2022

Description

Cadnano's helix order was not conserved when using from_cadnano_v2. That happened because @dave-doty thought that the constructor of Design would automatically handle this ordering (by correctly setting helices_view_order) but it does not. I have given more details in the related issue: #202

In order to fix this bug I uncommented the following instruction which sets the helix order directly in the import code instead of relying on Design's constructor:

design.set_helices_view_order([num for num in helices]) l.4648

Related Issue

#202

How Has This Been Tested?

I added the test tests.scadnano_tests.TestImportCadnanoV2.test_helices_order2

@tcosmo tcosmo requested a review from dave-doty as a code owner February 12, 2022 09:40
@dave-doty dave-doty merged commit fad3b98 into dev Feb 12, 2022
@dave-doty dave-doty deleted the bug_helix_order_issue branch February 12, 2022 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants