From f36c1cd449570559d786d6ffe933f4c747efc434 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Mon, 30 Sep 2024 16:27:19 +0100 Subject: [PATCH] chore(face-picking): convert prints to debug logs messages --- pyneuroml/plot/PlotMorphologyVispy.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pyneuroml/plot/PlotMorphologyVispy.py b/pyneuroml/plot/PlotMorphologyVispy.py index e023d376..3c22fca2 100644 --- a/pyneuroml/plot/PlotMorphologyVispy.py +++ b/pyneuroml/plot/PlotMorphologyVispy.py @@ -1831,9 +1831,11 @@ def on_mouse_press(event): face_idx = (picking_render.view(numpy.uint32) - 1)[1, 1, 0] picked_face = tuple(mesh._meshdata._faces[face_idx]) picked_seg_id = faces_to_segment[picked_face] - print(f"face id is: {face_idx}") - print(f"face is: {picked_face}") - print(f"corresponding segment is: {picked_seg_id}") + + logger.debug(f"face id is: {face_idx}") + logger.debug(f"face is: {picked_face}") + logger.debug(f"corresponding segment is: {picked_seg_id}") + clicked_on_seg(picked_seg_id, cell) attach_headlight(current_view)