Commit 6316e8af authored by cmaffeo2's avatar cmaffeo2
Browse files

Removed some debug-related output

parent 09b759a3
......@@ -252,7 +252,7 @@ class cadnano_part(SegmentModel):
## Build helices
for hid in range(numHID):
print("Working on helix",hid)
# print("Working on helix",hid)
helices[hid] = []
helix_ranges[hid] = []
self.strand_occupancies[hid] = []
......@@ -295,7 +295,7 @@ class cadnano_part(SegmentModel):
break
numBps += length
print("Adding helix with length",numBps,zid1,zid2)
# print("Adding helix with length",numBps,zid1,zid2)
kwargs = dict(name="%d-%d" % (hid,len(helices[hid])))
......@@ -473,12 +473,12 @@ class cadnano_part(SegmentModel):
def _add_prime_ends(self):
for h,fwd,z in self._5prime_list:
seg, nt = self._get_segment_nucleotide(h,z)
print("adding 5prime",seg.name,nt,fwd)
# print("adding 5prime",seg.name,nt,fwd)
seg.add_5prime(nt,fwd)
for h,fwd,z in self._3prime_list:
seg, nt = self._get_segment_nucleotide(h,z)
print("adding 3prime",seg.name,nt,fwd)
# print("adding 3prime",seg.name,nt,fwd)
seg.add_3prime(nt,fwd)
def get_bead(self, hid, zid):
......
......@@ -989,7 +989,7 @@ class SingleStrandedSegment(Segment):
end2 = other
# assert( other.type_ == "end5" )
if (other.type_ is not "end5"):
print("Warning: code does not prevent connecting 3prime to 3prime, etc")
print("WARNING: code does not prevent connecting 3prime to 3prime, etc")
else:
seg1 = other.container
seg2 = self
......@@ -997,7 +997,7 @@ class SingleStrandedSegment(Segment):
end2 = self.end5
# assert( other.type_ == "end3" )
if (other.type_ is not "end3"):
print("Warning: code does not prevent connecting 3prime to 3prime, etc")
print("WARNING: code does not prevent connecting 3prime to 3prime, etc")
## Remove other connections involving these points
if end1.connection is not None:
......@@ -1729,7 +1729,7 @@ class SegmentModel(ArbdModel):
t = deepcopy(bead.type_)
t.__dict__["nts"] = bead.num_nt*2 if t.name[0].upper() in ("D","O") else bead.num_nt
t.name = t.name + "%03d" % (t.nts*10**decimals)
print( "{} --> {} ({})".format(num_nt0, bead.num_nt, t.name) )
if self.DEBUG: print( "{} --> {} ({})".format(num_nt0, bead.num_nt, t.name) )
beadtype_s[key] = bead.type_ = t
# (cluster_size[c-1])
......@@ -2297,8 +2297,8 @@ class SegmentModel(ArbdModel):
def check(val):
assert(val >= 0 and val < segment.num_nt)
print("find_nt_not_in_strand({},{}) returning {}".format(
segment, is_fwd, val))
# print("find_nt_not_in_strand({},{}) returning {}".format(
# segment, is_fwd, val))
return val
if is_fwd:
......
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