Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dimension error within the environment #26

Closed
nicosquare opened this issue Aug 9, 2022 · 5 comments
Closed

Dimension error within the environment #26

nicosquare opened this issue Aug 9, 2022 · 5 comments
Assignees

Comments

@nicosquare
Copy link

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
Copy link
Member

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

@nicosquare
Copy link
Author

Hi @kingsleynweye!

I'm using version 1.3.4.

@kingsleynweye
Copy link
Member

@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
Copy link
Member

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

@kingsleynweye
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants