Spaces:
Sleeping
Sleeping
Commit
·
847dc60
1
Parent(s):
4828d96
added user light
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def calculate_lighting_consumption(occupancy_1br: float, occupancy_2br: float) -
|
|
39 |
return (
|
40 |
(occupancy_1br * ONE_BR_UNITS * LIGHTS_1BR * LIGHT_POWER / 1000)
|
41 |
+ (occupancy_2br * TWO_BR_UNITS * LIGHTS_2BR * LIGHT_POWER / 1000)
|
42 |
-
) *
|
43 |
|
44 |
|
45 |
def total_consumption(
|
|
|
39 |
return (
|
40 |
(occupancy_1br * ONE_BR_UNITS * LIGHTS_1BR * LIGHT_POWER / 1000)
|
41 |
+ (occupancy_2br * TWO_BR_UNITS * LIGHTS_2BR * LIGHT_POWER / 1000)
|
42 |
+
) * 6 # 6 hours per day
|
43 |
|
44 |
|
45 |
def total_consumption(
|