Skip to content

Something wrong with OPF #20

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

Closed
lyh11-source opened this issue Mar 4, 2025 · 2 comments
Closed

Something wrong with OPF #20

lyh11-source opened this issue Mar 4, 2025 · 2 comments

Comments

@lyh11-source
Copy link

Hi, it is my first time to use pyflow_acdc.

I try to run the coding of OPF which is in the example floder. But the ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). was appeared. How to solve this problem?

Sincerely waiting for your reponse.

@BernardoCV
Copy link
Owner

BernardoCV commented Mar 4, 2025

Hey! I found the issue, will get at it. The example uses a somewhat simple state of the DC DC converter that I discontinued, but forgot that specific example uses it.

@BernardoCV BernardoCV reopened this Mar 4, 2025
@BernardoCV
Copy link
Owner

Sorry about that, should run now. :) also OPF you can load pre saved grids from pyflow_acdc/pyflow_acdc/example_grids you will find the functions, just create a new py doc, import pyflow and load the grid with those functions

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