citylearn.internal.building_ops module

class citylearn.internal.building_ops.BuildingOpsService(building: Building)[source]

Bases: object

Internal observation/action operations for Building.

apply_actions(cooling_or_heating_device_action: float = None, cooling_device_action: float = None, heating_device_action: float = None, cooling_storage_action: float = None, heating_storage_action: float = None, dhw_storage_action: float = None, electrical_storage_action: float = None, washing_machine_actions: dict = None, electric_vehicle_storage_actions: dict = None)[source]

Update demand and charge/discharge storage devices.

apply_charging_constraints_to_actions(actions: Mapping[str, float] | None, electrical_storage_action: float | None = None) Tuple[Mapping[str, float] | None, float | None][source]

Apply configured electrical constraints and return adjusted EV/storage actions.

get_observations_data(include_all: bool = False) Mapping[str, float | int][source]

Build base observation dictionary without normalization.

observations(include_all: bool = None, normalize: bool = None, periodic_normalization: bool = None, check_limits: bool = None) Mapping[str, float][source]

Observations at current time step.

update_ev_charger_observations(observations, valid_observations, ev_chargers, include_all: bool = False)[source]

Update observations for each electric vehicle charger.

update_washing_machine_observations(observations, valid_observations, washing_machines)[source]

Update observations for each washing machine.