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

column order problem when updating #351

Open
EtienneLt opened this issue Mar 31, 2022 · 0 comments
Open

column order problem when updating #351

EtienneLt opened this issue Mar 31, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@EtienneLt
Copy link
Contributor

  • Do you want to request a feature or report a bug?

bug

  • What is the current behavior?

for specific dataframe when updating some columns must be in a specific order. Especially when setting regulating to True

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

n = pp.network.create_eurostag_tutorial_example1_network()
update = pd.DataFrame(index=['NHV2_NLOAD'],
columns=['regulating', 'target_v', 'target_deadband'],
data=[[True, 180, 2]])
n.update_ratio_tap_changers(update)

does not work but

n = pp.network.create_eurostag_tutorial_example1_network()
update = pd.DataFrame(index=['NHV2_NLOAD'],
columns=['target_v', 'target_deadband', 'regulating'],
data=[[180, 2, True]])
n.update_ratio_tap_changers(update)

works

  • What is the expected behavior?

to work in any order

  • Please tell us about your environment:
    • PowSyBl Version: 0.14
    • OS Version: ubuntu
@EtienneLt EtienneLt added the bug Something isn't working label Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant