mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
rounding photo supply to the nearest 5
This commit is contained in:
parent
c948c24061
commit
e50d82ac24
1 changed files with 6 additions and 2 deletions
|
|
@ -174,6 +174,10 @@ class SolarPvRecommendations:
|
|||
if already_installed:
|
||||
cost_result = override_costs(cost_result)
|
||||
|
||||
# We calculate the photo_supply we're going to simulate the impact with and we round this to the
|
||||
# nearest 5
|
||||
photo_supply = round(roof_coverage_percent / 5) * 5
|
||||
|
||||
self.recommendation.append(
|
||||
{
|
||||
"phase": phase,
|
||||
|
|
@ -188,9 +192,9 @@ class SolarPvRecommendations:
|
|||
# This is required for simulating the SAP impact. solar_pv_percentage is between 0 & 1 so we
|
||||
# scale
|
||||
# back up here
|
||||
"photo_supply": roof_coverage_percent,
|
||||
"photo_supply": photo_supply,
|
||||
"has_battery": has_battery,
|
||||
"initial_ac_kwh_per_year": recommendation_config["initial_ac_kwh_per_year"],
|
||||
"description_simulation": {"photo-supply": roof_coverage_percent},
|
||||
"description_simulation": {"photo-supply": photo_supply},
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue