From 5fece87f9b4d14069c978efb17bd805b3bdb3886 Mon Sep 17 00:00:00 2001 From: Brandon B Date: Tue, 12 Sep 2017 16:20:13 -0700 Subject: [PATCH] Update rois.py, fix typo Fixed typo with Exception causing failure --- caiman/base/rois.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caiman/base/rois.py b/caiman/base/rois.py index a5d02eca7..a0eb8b147 100644 --- a/caiman/base/rois.py +++ b/caiman/base/rois.py @@ -216,7 +216,7 @@ def nf_match_neurons_in_binary_masks(masks_gt,masks_comp,thresh_cost=.7, min_dis else: pl.title(labels[1]+'(w), ' + labels[0] + '(r)') pl.axis('off') - except Exception, e: + except Exception as e: print("not able to plot precision recall usually because we are on travis") print(e) return idx_tp_gt,idx_tp_comp, idx_fn_gt, idx_fp_comp, performance