citylearn.internal.building_ops module
- class citylearn.internal.building_ops.BuildingOpsService(building: Building)[source]
Bases:
objectInternal 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.