From 5b0294b3bec474809fa570b5469a337fb24dcffc Mon Sep 17 00:00:00 2001 From: Chris Maffeo <cmaffeo2@illinois.edu> Date: Fri, 14 Sep 2018 15:21:33 -0500 Subject: [PATCH] Removed some unneccesary warnings --- mrdna/segmentmodel.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mrdna/segmentmodel.py b/mrdna/segmentmodel.py index 4093096..3c7c05c 100644 --- a/mrdna/segmentmodel.py +++ b/mrdna/segmentmodel.py @@ -1010,17 +1010,17 @@ class SingleStrandedSegment(Segment): seg2 = other.container end1 = self.end3 end2 = other - # assert( other.type_ == "end5" ) - if (other.type_ is not "end5"): - print("WARNING: code does not prevent connecting 3prime to 3prime, etc") + assert(other.type_ != "end3") + # if (other.type_ is not "end5"): + # print("WARNING: code does not prevent connecting 3prime to 3prime, etc") else: seg1 = other.container seg2 = self end1 = other end2 = self.start - # assert( other.type_ == "end3" ) - if (other.type_ is not "end3"): - print("WARNING: code does not prevent connecting 3prime to 3prime, etc") + assert(other.type_ != "end5") + # if (other.type_ is not "end3"): + # print("WARNING: code does not prevent connecting 3prime to 3prime, etc") ## Remove other connections involving these points if end1.connection is not None: @@ -1840,7 +1840,8 @@ class SegmentModel(ArbdModel): for b1,b2 in intra_beads: # assert( not np.isclose( np.linalg.norm(b1.collapsedPosition() - b2.collapsedPosition()), 0 ) ) if np.linalg.norm(b1.collapsedPosition() - b2.collapsedPosition()) < 1: - print("WARNING: some beads are very close") + # print("WARNING: some beads are very close") + ... parent = self._getParent(b1,b2) -- GitLab