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

[bug] Can not read-in Matpower file with various voltage levels #2516

Open
6 tasks done
Paulnkk opened this issue Jan 28, 2025 · 1 comment
Open
6 tasks done

[bug] Can not read-in Matpower file with various voltage levels #2516

Paulnkk opened this issue Jan 28, 2025 · 1 comment
Labels

Comments

@Paulnkk
Copy link

Paulnkk commented Jan 28, 2025

Bug report checklis

  • Searched the issues page for similar reports

  • Read the relevant sections of the documentation

  • Browse the tutorials and tests for usefull code snippets and examples of use

  • Reproduced the issue after updating with pip install --upgrade pandapower (or git pull)

  • Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath

Reproducible Example

# Convert MATPOWER case to pandapower network
# mat_file_path is file to the 14-IEEE case
net = pc.from_mpc(
        mat_file_path, f_hz=50, casename_mpc_file="mpc", validate_conversion=False
    )
# Run power flow to calculate the Ybus matrix
pp.runpp(net)

Issue Description and Traceback

Hey,

in the context of the following issue: #2338, I tried to transform the following .m-file from https://github.com/MATPOWER/matpower/blob/master/data/case14.m into a pandapower format but here I got the error message from #2338. Technically the issue mainly arises from the fact that net.bus["vn_kv"] is 0 for each bus. When I read-in the adjusted 14 IEEE case which is built-in pandapower with net = pn.case14(), the net.bus["vn_kv"] includes the actual values. How can I resolve this issue ?

Thanks and best

Paul-Niklas

Expected Behavior

I should get a pandapower file which contains values similar to the built-in 14 bus case from net = pn.case14()

Installed Versions

  • python version: 3.10 pandas version: 2.2.2 networkx version: 3.3 scipy version: 1.13.1 numpy version: 1.26.4 packaging version: * tqdm version: 4.66.5 deepdiff version: - Operating System name/version: macos Monterrey M1

Label

  • Relevant labels are selected
@Paulnkk Paulnkk added the bug label Jan 28, 2025
@Paulnkk
Copy link
Author

Paulnkk commented Jan 28, 2025

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

No branches or pull requests

1 participant