From e420252b3759e6d8ae3f7e17c48cce412f2a1699 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 29 Jan 2019 13:20:55 +0000 Subject: [PATCH] Fixed recalibration stream stop/restart --- utilities/recalibrate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/recalibrate.py b/utilities/recalibrate.py index 5a1893ea..6ec27794 100644 --- a/utilities/recalibrate.py +++ b/utilities/recalibrate.py @@ -128,9 +128,9 @@ def generate_lens_shading_table_closed_loop(output_fname="microscopelst.npy", gains *= incremental_gains # Apply this change (actually apply a bit less than the change) - cam.pause_stream() + cam.stop_stream_recording() cam.camera.lens_shading_table = gains_to_lst(gains*32) - cam.resume_stream() + cam.start_stream_recording() time.sleep(2) # Fix the AWB gains so the image is neutral