Commit 75b56116 authored by cmaffeo2's avatar cmaffeo2
Browse files

0-nt segments now raise warning, not error

parent 873aa76a
......@@ -398,6 +398,9 @@ class atomicModel():
for ins in strand.insertionsOnStrand(l,h):
nts += ins.length()
if nts <= 0:
print("WARNING: there is something strange in the structure at helix %d (%d,%d)" % (hid,l,h))
continue
assert( nts > 0 )
for i in range(nts):
if nts == 1:
......@@ -406,6 +409,7 @@ class atomicModel():
zIdxs.append( l + (h-l) * float(i)/(nts-1) )
assert( len(zIdxs) == numNt )
if isFwd:
helixNts = self.helixNtsFwd[hid]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment