mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
extract renewables pv connection 🟥
This commit is contained in:
parent
0e69f8e7a5
commit
8b4b345f7a
1 changed files with 5 additions and 0 deletions
|
|
@ -415,12 +415,17 @@ class PasHubRdSapSiteNotesExtractor:
|
|||
if batteries_raw is None or batteries_raw.lower() == "none"
|
||||
else int(batteries_raw)
|
||||
)
|
||||
pv_connection = self._get_in(r_section, "PV Connection:")
|
||||
percent_raw = self._get_in(r_section, "Percentage of roof covered with photovoltaic array?")
|
||||
percent_roof = int(percent_raw.split()[0]) if percent_raw else None
|
||||
return Renewables(
|
||||
wind_turbines=self._bool_in(r_section, "Has wind turbines?"),
|
||||
solar_hot_water=self._bool_in(r_section, "Has solar hot water?"),
|
||||
photovoltaic_array=self._bool_in(r_section, "Has photovoltaic array?"),
|
||||
number_of_pv_batteries=batteries,
|
||||
hydro=self._bool_in(r_section, "Is the dwelling connected to Hydro?"),
|
||||
pv_connection=pv_connection,
|
||||
percent_roof_covered_pv=percent_roof,
|
||||
)
|
||||
|
||||
def extract_room_count_elements(self) -> RoomCountElements:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue