Skip to content

Commit

Permalink
Not all agents become HP aware on ban announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
charlotte-avery committed Nov 20, 2024
1 parent ff32496 commit ae6513c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions simulation/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,12 @@ def get_heating_system_options(
[HeatingSystem.BOILER_GAS, HeatingSystem.BOILER_OIL]
)

if not is_gas_oil_boiler_ban_announced:
# if a gas/boiler ban is announced, we assume all households are aware of heat pumps
is_gas_oil_boiler_ban_in_place = (
InterventionType.GAS_OIL_BOILER_BAN in model.interventions
and model.current_datetime >= model.gas_oil_boiler_ban_datetime
)
if not is_gas_oil_boiler_ban_in_place:
# if a gas/boiler ban is in place, we assume all households are aware of heat pumps
if not self.is_heat_pump_aware:
heating_system_options -= HEAT_PUMPS

Expand Down

0 comments on commit ae6513c

Please sign in to comment.