Update data/calculation.py
Browse files- data/calculation.py +11 -6
data/calculation.py
CHANGED
|
@@ -24,12 +24,17 @@ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(
|
|
| 24 |
logger = logging.getLogger(__name__)
|
| 25 |
|
| 26 |
# Initialize session_state for climate data
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
class SolarCalculations:
|
| 35 |
"""Class for performing solar radiation and angle calculations based on ASHRAE methodologies."""
|
|
|
|
| 24 |
logger = logging.getLogger(__name__)
|
| 25 |
|
| 26 |
# Initialize session_state for climate data
|
| 27 |
+
building_info["climate_data"] = st.session_state.get("climate_data", {
|
| 28 |
+
"latitude": 0.0,
|
| 29 |
+
"longitude": 0.0,
|
| 30 |
+
"timezone": 0.0
|
| 31 |
+
})
|
| 32 |
+
if "climate_data" not in st.session_state:
|
| 33 |
+
st.session_state["climate_data"] = {
|
| 34 |
+
"latitude": 0.0,
|
| 35 |
+
"longitude": 0.0,
|
| 36 |
+
"timezone": 0.0
|
| 37 |
+
}
|
| 38 |
|
| 39 |
class SolarCalculations:
|
| 40 |
"""Class for performing solar radiation and angle calculations based on ASHRAE methodologies."""
|