From 07784594bd82a616e8dbebd97542234005ef723c Mon Sep 17 00:00:00 2001
From: Chris Maffeo <cmaffeo2@illinois.edu>
Date: Wed, 5 Sep 2018 18:20:18 +0000
Subject: [PATCH] Updated cadnano reader to work with recent pull of cadnano
 (ce6ff019)

---
 dnarbd/readers/cadnano_segments.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dnarbd/readers/cadnano_segments.py b/dnarbd/readers/cadnano_segments.py
index a70f7d7..fde1d8f 100644
--- a/dnarbd/readers/cadnano_segments.py
+++ b/dnarbd/readers/cadnano_segments.py
@@ -209,7 +209,11 @@ class cadnano_part(SegmentModel):
             # TODO add code to encode Parts with ARBITRARY point configurations
             raise NotImplementedError("Not implemented")
         else:
-            vh_props, origins = part.helixPropertiesAndOrigins()
+            try:
+                vh_props, origins = part.helixPropertiesAndOrigins()
+            except:
+                origins = {hid:part.getVirtualHelixOrigin(hid)[:2] for hid in part.getidNums()}
+
         self.origins = origins
 
         vh_list = []
-- 
GitLab