Spaces:
Sleeping
Sleeping
Update utils/ctf_calculations.py
Browse files
utils/ctf_calculations.py
CHANGED
@@ -16,20 +16,13 @@ import logging
|
|
16 |
import threading
|
17 |
from typing import List, Dict, Any, NamedTuple
|
18 |
import streamlit as st
|
19 |
-
from
|
20 |
from utils.solar import SolarCalculations
|
21 |
|
22 |
# Configure logging
|
23 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
24 |
logger = logging.getLogger(__name__)
|
25 |
|
26 |
-
class ComponentType(Enum):
|
27 |
-
WALL = "Wall"
|
28 |
-
ROOF = "Roof"
|
29 |
-
FLOOR = "Floor"
|
30 |
-
WINDOW = "Window"
|
31 |
-
SKYLIGHT = "Skylight"
|
32 |
-
|
33 |
class CTFCoefficients(NamedTuple):
|
34 |
X: List[float] # Exterior temperature coefficients
|
35 |
Y: List[float] # Cross coefficients
|
|
|
16 |
import threading
|
17 |
from typing import List, Dict, Any, NamedTuple
|
18 |
import streamlit as st
|
19 |
+
from utils.enums import ComponentType
|
20 |
from utils.solar import SolarCalculations
|
21 |
|
22 |
# Configure logging
|
23 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
24 |
logger = logging.getLogger(__name__)
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
class CTFCoefficients(NamedTuple):
|
27 |
X: List[float] # Exterior temperature coefficients
|
28 |
Y: List[float] # Cross coefficients
|