From 0261f3b800644c4b741af444b51a535831847592 Mon Sep 17 00:00:00 2001 From: chrisnatali Date: Wed, 27 Apr 2016 21:38:42 -0400 Subject: [PATCH] check fnode for None explicitly (woops) --- sequencer/Sequencer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sequencer/Sequencer.py b/sequencer/Sequencer.py index 9fc0ad7..dec257b 100644 --- a/sequencer/Sequencer.py +++ b/sequencer/Sequencer.py @@ -234,7 +234,7 @@ def _build_edge_wkt(self): r = self.results # Iterate through the nodes and their parent for rank, fnode, tnode in zip(r.index, r['Sequence..Upstream.id'], r['Sequence..Vertex.id']): - if fnode: + if not fnode == None: if np.any(np.mod([fnode, tnode], 1) != 0): raise Exception('Non-integral node index in results.') # Set the edge attributes with those found in sequencing