Spaces:
Sleeping
Sleeping
Update utils/solar.py
Browse files- utils/solar.py +4 -6
utils/solar.py
CHANGED
|
@@ -452,12 +452,10 @@ class SolarCalculations:
|
|
| 452 |
solar_heat_gain = comp.area * shgc_dynamic * I_t * iac / 1000 # kW
|
| 453 |
comp_result["solar_heat_gain"] = round(solar_heat_gain, 2)
|
| 454 |
comp_result["shgc_dynamic"] = round(shgc_dynamic, 2)
|
| 455 |
-
logger.info(f"Solar heat gain for {comp_result['component_id']} at
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
f"I_t={I_t:.2f}, iac={iac})")
|
| 460 |
-
|
| 461 |
component_results.append(comp_result)
|
| 462 |
|
| 463 |
except Exception as e:
|
|
|
|
| 452 |
solar_heat_gain = comp.area * shgc_dynamic * I_t * iac / 1000 # kW
|
| 453 |
comp_result["solar_heat_gain"] = round(solar_heat_gain, 2)
|
| 454 |
comp_result["shgc_dynamic"] = round(shgc_dynamic, 2)
|
| 455 |
+
logger.info(f"Solar heat gain for {comp_result['component_id']} at {month}/{day}/{hour}: "
|
| 456 |
+
f"{solar_heat_gain:.2f} kW (area={comp.area}, shgc_dynamic={shgc_dynamic:.2f}, "
|
| 457 |
+
f"I_t={I_t:.2f}, iac={iac})")
|
| 458 |
+
|
|
|
|
|
|
|
| 459 |
component_results.append(comp_result)
|
| 460 |
|
| 461 |
except Exception as e:
|