Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pandapower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from pandapower.diagnostic import *
from pandapower.runpm import *
from pandapower.pf.runpp_3ph import runpp_3ph
from pandapower.toolbox import *

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonRubenDrauz please do not add additional imports to __init__.py . We are trying to reduce the load times. toolbox contains many functions that do not need to be loaded by default.
Also this should not be grouped in together with other changes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this causes pandaplan-core to malfunction. Since we rely on pandaplan-core and also hold a license for it, I strongly recommend making the necessary adjustments to pandaplan-core and releasing a corresponding new version of pandaplan-core alongside the new version of pandapower.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please raise this issue with the pandaplan-core maintainers.


import geojson
geojson.geometry.DEFAULT_PRECISION = 8
Expand Down
4 changes: 2 additions & 2 deletions pandapower/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "3.4.0"
__format_version__ = "3.1.0"
__version__ = "3.4.1"
__format_version__ = "3.3.0"
3,524 changes: 3,524 additions & 0 deletions pandapower/test/test_files/old_versions/example_3.2.0.json

Large diffs are not rendered by default.

3,524 changes: 3,524 additions & 0 deletions pandapower/test/test_files/old_versions/example_3.2.1.json

Large diffs are not rendered by default.

3,524 changes: 3,524 additions & 0 deletions pandapower/test/test_files/old_versions/example_3.2.2.json

Large diffs are not rendered by default.

3,524 changes: 3,524 additions & 0 deletions pandapower/test/test_files/old_versions/example_3.3.0.json

Large diffs are not rendered by default.

3,524 changes: 3,524 additions & 0 deletions pandapower/test/test_files/old_versions/example_3.3.1.json

Large diffs are not rendered by default.

3,524 changes: 3,524 additions & 0 deletions pandapower/test/test_files/old_versions/example_3.3.2.json

Large diffs are not rendered by default.

3,524 changes: 3,524 additions & 0 deletions pandapower/test/test_files/old_versions/example_3.3.3.json

Large diffs are not rendered by default.

3,551 changes: 3,551 additions & 0 deletions pandapower/test/test_files/old_versions/example_3.4.0.json
Comment thread
KS-HTK marked this conversation as resolved.

Large diffs are not rendered by default.

3,551 changes: 3,551 additions & 0 deletions pandapower/test/test_files/old_versions/example_3.4.1.json

Large diffs are not rendered by default.

19 changes: 15 additions & 4 deletions pandapower/test/test_files/save_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,27 @@
# and Energy System Technology (IEE), Kassel. All rights reserved.

import os
import numpy as np
import pandas as pd

from pandapower import pp_dir
from pandapower import __version__ as pp_version
from pandapower.control.controller.trafo import DiscreteTapControl
from pandapower.control.util.auxiliary import create_trafo_characteristics
from pandapower.control.controller.trafo.DiscreteTapControl import DiscreteTapControl
from pandapower.control.util.auxiliary import create_trafo_characteristic_object#_create_trafo_characteristics
from pandapower.file_io import to_json
from pandapower.networks.create_examples import example_multivoltage
from pandapower.run import runpp

net = example_multivoltage()
DiscreteTapControl(net, 1, 1.02, 1.03)
create_trafo_characteristics(net, "trafo", 1, "vk_percent", [-2, 0, 2], [3.5, 4, 4.5])
net["trafo_characteristic_table"] = pd.DataFrame(
{'id_characteristic': [0, 0, 0], 'step': [-2, 0, 2],
'voltage_ratio': np.nan, 'angle_deg': np.nan,
'vk_percent': [3.5, 4, 4.5], "vkr_percent": np.nan,
'vk_hv_percent': np.nan, 'vkr_hv_percent': np.nan,
'vk_mv_percent': np.nan, 'vkr_mv_percent': np.nan,
'vk_lv_percent': np.nan, 'vkr_lv_percent': np.nan})
net.trafo.at[1, 'id_characteristic_table'] = 0
create_trafo_characteristic_object(net)
runpp(net, run_control=True)
to_json(net, os.path.join("old_versions", "example_%s.json" % pp_version))
to_json(net, os.path.join(f"{pp_dir}/test/test_files/old_versions", "example_%s.json" % pp_version))
Loading