intelligent-environments-lab / CityLearn

Official reinforcement learning environment for demand response and load shaping
MIT License
462 stars 167 forks source link

Dimension error within the environment #26

Closed nicosquare closed 1 year ago

nicosquare commented 2 years ago

Hi everyone,

I was doing some experimentation and I think I faced an issue that is outside of my control. When getting the reward from env.step method I'm getting this error:

ValueError: operands could not be broadcast together with shapes (8760,) (8761,) 

It was raised when trying to compute the net_electricity_consumption function (the original) in the building.py line 344.

Could anyone give me a hint about how to solve this issue?

Thanks in advance!

kingsleynweye commented 2 years ago

Hi @nicosquare please, can you confirm what version of citylearn you are using?

nicosquare commented 2 years ago

Hi @kingsleynweye!

I'm using version 1.3.4.

kingsleynweye commented 2 years ago

@nicosquare okay please, can you paste a snippet of the edits to the code you made in env.step before the ValueError showed up?

kingsleynweye commented 1 year ago

@nicosquare checking if you were able to resolve this eventually?

kingsleynweye commented 1 year ago

Closing out this issue @nicosquare as it seems to be resolved but also, the CityLearn Challenge 2022 is now completed. Please, open a new issue if you still have related problems.