From d6d477ba069a4d31921403e1188cceedf7b5e496 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 24 Mar 2023 18:18:52 +0100 Subject: [PATCH] Switched to more modular structure --- main.py | 1 + picamburst.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7632025..a9bb534 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +#!//usr/bin/python3 import numpyHDR as hdr import picamburst as pcb import file_utility as file diff --git a/picamburst.py b/picamburst.py index 05eb031..d044125 100644 --- a/picamburst.py +++ b/picamburst.py @@ -29,13 +29,13 @@ def get_exposure_stack(factor: int = 2): picam2.set_controls({"AeEnable": 0}) confirmed = picam2.capture_metadata()["AeLocked"] while confirmed != True: - confimed = picam2.capture_metadata()["AeLocked"] + confirmed = picam2.capture_metadata()["AeLocked"] time.sleep(.1) picam2.set_controls({"AnalogueGain": gain_start}) confirmed = picam2.capture_metadata()["AnalogueGain"] while confirmed != gain_start in range(gain_start -0.1, gain_start +0.1): - confimed = picam2.capture_metadata()["AnalogueGain"] + confirmed = picam2.capture_metadata()["AnalogueGain"] time.sleep(.1) ev1 = picam2.capture_array()