From d64e28920d455d61772ca288e905daadf378ef69 Mon Sep 17 00:00:00 2001
From: Chris Maffeo <cmaffeo2@illinois.edu>
Date: Fri, 21 Feb 2020 13:34:36 -0600
Subject: [PATCH] Fixed SegmentModel.count_crossovers() to include
 terminal_crossover connections

---
 mrdna/segmentmodel.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mrdna/segmentmodel.py b/mrdna/segmentmodel.py
index e25ef89..8867774 100644
--- a/mrdna/segmentmodel.py
+++ b/mrdna/segmentmodel.py
@@ -2479,7 +2479,7 @@ class SegmentModel(ArbdModel):
             for b in beads:
                 for l in b.locations:
                     if l.connection is not None:
-                        if l.connection.type_ == "crossover":
+                        if l.connection.type_ in ("crossover","terminal_crossover"):
                             count += 1
             return count
 
-- 
GitLab