From ed6306b47719037f39af805a2535cfcdc0df1b4d Mon Sep 17 00:00:00 2001 From: Daniele Verducci Date: Wed, 22 May 2024 08:58:41 +0200 Subject: [PATCH] Changed human readable time and aperture strings --- src/ev_calculator.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/ev_calculator.py b/src/ev_calculator.py index 2c79627..7129966 100644 --- a/src/ev_calculator.py +++ b/src/ev_calculator.py @@ -21,16 +21,16 @@ class EVCalculator: DEFAULT_ISO_SPEED = 100 APERTURE_VALUES = { - 1/32: "1/32", - 1/22: "1/22", - 1/16: "1/16", - 1/11: "1/11", - 1/8: "1/8", - 1/5.6: "1/5.6", - 1/4: "1/4", - 1/2.8: "1/2.8", - 1/2: "1/2", - 1/1.4: "1/1.4" + 1/32: "f/ 32", + 1/22: "f/ 22", + 1/16: "f/ 16", + 1/11: "f/ 11", + 1/8: "f/ 8", + 1/5.6: "f/ 5.6", + 1/4: "f/ 4", + 1/2.8: "f/ 2.8", + 1/2: "f/ 2", + 1/1.4: "f/ 1.4" } SHUTTER_SPEED_VALUES = { @@ -46,12 +46,12 @@ class EVCalculator: 1/8: "1/8", 1/4: "1/4", 1/2: "1/2", - 1: "1", - 2: "2", - 4: "4", - 8: "8", - 15: "15", - 30: "30" + 1: "1 sec", + 2: "2 sec", + 4: "4 sec", + 8: "8 sec", + 15: "15 sec", + 30: "30 sec" } def luxToEV(lux: float) -> float: