pypowsybl icon indicating copy to clipboard operation
pypowsybl copied to clipboard

column order problem when updating

Open EtienneLt opened this issue 2 years ago • 0 comments

  • 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 avatar Mar 31 '22 14:03 EtienneLt