Changed human readable time and aperture strings

This commit is contained in:
Daniele Verducci 2024-05-22 08:58:41 +02:00
parent e4a7e4fcef
commit ed6306b477

View File

@ -21,16 +21,16 @@ class EVCalculator:
DEFAULT_ISO_SPEED = 100 DEFAULT_ISO_SPEED = 100
APERTURE_VALUES = { APERTURE_VALUES = {
1/32: "1/32", 1/32: "f/ 32",
1/22: "1/22", 1/22: "f/ 22",
1/16: "1/16", 1/16: "f/ 16",
1/11: "1/11", 1/11: "f/ 11",
1/8: "1/8", 1/8: "f/ 8",
1/5.6: "1/5.6", 1/5.6: "f/ 5.6",
1/4: "1/4", 1/4: "f/ 4",
1/2.8: "1/2.8", 1/2.8: "f/ 2.8",
1/2: "1/2", 1/2: "f/ 2",
1/1.4: "1/1.4" 1/1.4: "f/ 1.4"
} }
SHUTTER_SPEED_VALUES = { SHUTTER_SPEED_VALUES = {
@ -46,12 +46,12 @@ class EVCalculator:
1/8: "1/8", 1/8: "1/8",
1/4: "1/4", 1/4: "1/4",
1/2: "1/2", 1/2: "1/2",
1: "1", 1: "1 sec",
2: "2", 2: "2 sec",
4: "4", 4: "4 sec",
8: "8", 8: "8 sec",
15: "15", 15: "15 sec",
30: "30" 30: "30 sec"
} }
def luxToEV(lux: float) -> float: def luxToEV(lux: float) -> float: