Skip to content
Snippets Groups Projects
Commit 5a5d0b24 authored by cmaffeo2's avatar cmaffeo2
Browse files

Try--except different cadnano versions syntax

parent ae7cd244
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,14 @@ class cadnano_part(SegmentModel): ...@@ -199,7 +199,14 @@ class cadnano_part(SegmentModel):
dimensions=(5000,5000,5000)) dimensions=(5000,5000,5000))
def _cadnano_part_to_segments(self,part): def _cadnano_part_to_segments(self,part):
from cadnano.cnenum import PointType try:
from cadnano.cnenum import PointType
except:
try:
from cadnano.proxies.cnenum import PointType
except:
from cadnano.proxies.cnenum import PointEnum as PointType
segments = dict() segments = dict()
self.helices = helices = dict() self.helices = helices = dict()
self.helix_ranges = helix_ranges = dict() self.helix_ranges = helix_ranges = dict()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment