Fixed bug where citylearn.citylearn.CityLearnEnv.evaluate method throws an AttributeError when building is not of type citylearn.building.DynamicBuilding.
This issue is as a result of the default baseline_condition variable name, net_electricity_consumption_without_storage_and_partial_load, not existing in citylearn.buildingBuilding and schemas that use buildings of such type caused citylearn.citylearn.CityLearnEnv.evaluate to fail.
Since the notebooks in examples still use CityLearn==2.0.0, a temporary fix has been provided in the notebooks to ensure citylearn.citylearn.CityLearnEnv.evaluate works by specifying an alternative baseline_condition:
Description
Fixed bug where
citylearn.citylearn.CityLearnEnv.evaluate
method throws anAttributeError
when building is not of typecitylearn.building.DynamicBuilding
.This issue is as a result of the default
baseline_condition
variable name,net_electricity_consumption_without_storage_and_partial_load
, not existing incitylearn.buildingBuilding
and schemas that use buildings of such type causedcitylearn.citylearn.CityLearnEnv.evaluate
to fail.Since the notebooks in examples still use
CityLearn==2.0.0
, a temporary fix has been provided in the notebooks to ensurecitylearn.citylearn.CityLearnEnv.evaluate
works by specifying an alternativebaseline_condition
:CityLearn>=2.1b9
will have this bug fixed.Issue
Changes
EvaluationCondition
enumerationcitylearn.citylearn.CityLearnEnv.evaluate
methodScreenshots
NIL
Checklist
requirements.txt
file, if applicable.Additional notes
NIL