Closed pablo-ta closed 1 year ago
Hi @pablo-ta, thanks for bringing these issues to our notice. I apologize for the divergence between the master branch and the version installed from PyPi with pip
as I now see that it must have brought about confusion for other users in the community.
The reason the master branch did not match the releases in PyPi was because the PyPi releases up until v1.4.0
had been built from the citylearn_2022 branch and v1.4.0
had been built from the citylearn_v2 branch. The master
branch had retained the same state of the CityLearn Challenge 2021. This issue has been fixed now as the master branch will now be used for PyPi releases with the latest release v1.4.1 reflecting this change. v1.4.1
also includes bug fixes that address the issues you mentioned:
Problem in testing data - We had only updated citylearn_challenge_2022_phase_1
data to meet the requirements of the environment that was used in the CItyLearn Challenge 2022, hence, the other data had the discrepancies you noticed such as the weather data file name in the schema. This has been fixed in this commit.
Problem with observations - The reason for the nan
value was because the net_electricity_consumption calculation had a nan
value for heating load and in some cases, solar generation when a building did not have PV. Thus problem was originating from the building files for the pre-2022 challenge data. It has been fixed with this commit.
_Differences with repository and pip__ - This issue has been fixed by releasing from the master
branch since v1.4.1
. The official way to install will now be through PyPi releases using the pip
command:
pip install CityLearn
Anex - I have not looked into this so I can't advice on it. However, I am excited to know that you are working on this as it will be helpful for the community to use standardized libraries for baseline agents.
I will close out this issue but please, do not hesitate to open another issue if you find other bugs :)!
Awesome work, thanks a lot. i have updated citylearn and it seems to be working fine. Ill keep you posted on my results using stablebaselines3 for single and multy agents integrations
Good morning, I am working on a fully automated integration of CityLearn with StableBaselines3 and other Gyms agents,
installing citylearn with pip:
pip install citylearn
i have found several problems and i'd like to request some help.Problem in testing data
The folders on the "data" folder:
have the wrong name on the weather.csv file, it should be weather_data.csv acording to the schema.json of the same folders.
Problem with observations,
Executing the environment created with
There are NaN values at the end of every vector of the observation:
and that lead to the following error if i use it with stable_baselines3 PPO
Diferences with repository and pip
The package installed with pip is considerably diferent with the one found on this repository. Is the pip package not "oficial" ? what is the recomended way to install CityLearn for usage?
Anex
this is the class i am using to transform the action and observation space for gym, if there is an oficial or better way, i whould like to ask for a bit of help