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

Example doesn't work right out of the box. #139

Open
JvPost opened this issue Jul 2, 2024 · 3 comments
Open

Example doesn't work right out of the box. #139

JvPost opened this issue Jul 2, 2024 · 3 comments

Comments

@JvPost
Copy link

JvPost commented Jul 2, 2024

Im trying to run the examples single_inverter_current_control_safe_opt.py and single_inverter_voltage_current_control_safe_opt.py.

Both have an issue with the reward function.
Specifically, the line phase = data[idx[1]] # phase from the master controller needed for transformation has an error. It's the fourth line in the reward function.
The data passed to the reward function has not enough indeces to follow the pattern performed in the set_idx method.

I'm running on wsl in python=3.8.18. I've installed the packages in the requirements.txt and the omg package.

@stheid
Copy link

stheid commented Jul 2, 2024

Do the simpler examples work for you? Unfortunately, i have no installed version of the code any more.

What exactly are you trying to achieve.

@Webbah
Copy link
Collaborator

Webbah commented Jul 2, 2024

Can you send a screenshot of how the error and data and idx look like?

On my end it is working and looks like that:
image

@Kalash-byte
Copy link

Screenshot 2024-09-02 124758I also got the same error but after minor tweaking i was able to resolve the error. But next problem i am facing is this.

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

4 participants