From 65df702dfdb7f2c5895a79df7b83ae967324efb6 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 18 Nov 2020 16:09:35 +0000 Subject: [PATCH] Removed unused commented line --- openflexure_microscope/api/v2/views/camera.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openflexure_microscope/api/v2/views/camera.py b/openflexure_microscope/api/v2/views/camera.py index 2dc22042..c1fe4a89 100644 --- a/openflexure_microscope/api/v2/views/camera.py +++ b/openflexure_microscope/api/v2/views/camera.py @@ -1,6 +1,7 @@ +import datetime import logging from io import BytesIO -import datetime + import numpy as np from flask import send_file from labthings import find_component @@ -45,6 +46,5 @@ class LSTImageProperty(PropertyView): Image.fromarray(np.uint8(all_channels), "L").save(img_bytes, "PNG") img_bytes.seek(0) # Return the image - #return Response(img_bytes.getvalue(), mimetype="image/png") fname = f"lst-{datetime.date.today().isoformat()}.png" return send_file(img_bytes, as_attachment=True, attachment_filename=fname)