From 91b4a7219663d6186d1a3bfd29ffe621fc733261 Mon Sep 17 00:00:00 2001 From: jersaal Date: Wed, 15 Jan 2020 15:23:22 +0100 Subject: [PATCH] Fixed bug preventing removal of marked electrodes --- img_pipe/SupplementalScripts/electrode_picker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/img_pipe/SupplementalScripts/electrode_picker.py b/img_pipe/SupplementalScripts/electrode_picker.py index 4a260d8..59ec7a2 100644 --- a/img_pipe/SupplementalScripts/electrode_picker.py +++ b/img_pipe/SupplementalScripts/electrode_picker.py @@ -750,7 +750,8 @@ def remove_electrode(self): ''' Remove the electrode at the current crosshair point. ''' - cs = self.current_slice + cs = np.round(self.current_slice).astype(np.int) + radius = 2 if self.bin_mat != '': self.bin_mat = ''