From 4a8848e650f1ac22e4b0e07cda266b028f583df7 Mon Sep 17 00:00:00 2001 From: osmala <ossi.laine@utu.fi> Date: Wed, 10 Jun 2020 11:59:45 +0300 Subject: [PATCH] Fixed indentation bug in embody_plot.py --- embody_plot.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/embody_plot.py b/embody_plot.py index 169587b..1c8666d 100644 --- a/embody_plot.py +++ b/embody_plot.py @@ -210,24 +210,22 @@ def plot_coordinates(coordinates, image_path=DEFAULT_IMAGE_PATH): except IndexError as err: app.logger.info(err) - point = ndimage.gaussian_filter(frame, sigma=5) - ax2.imshow(point, cmap='hot', interpolation='none') - # Try to send progress information to socket.io - if idx == 0: continue if round((idx / points_count) * 100) % (step * 5) == 0: try: - emit('progress', {'done':step * 5, 'from':100}) + emit('progress', {'done': step * 5, 'from': 100}) socketio.sleep(0.05) - except RuntimeError as err: - print(err) + except RuntimeError: continue step += 1 + point = ndimage.gaussian_filter(frame, sigma=5) + ax2.imshow(point, cmap='hot', interpolation='none') + image_mask = mpimg.imread(IMAGE_PATH_MASK) ax2.imshow(image_mask) -- GitLab