Skip to content

Commit 9ab37d0

Browse files
KS-HTKjwiemer112mrifraunhofervogt31337brynpickering
authored
update release/4.0.0 base (#2968)
* updated docstings (#2934) deprecated unused keyword args * Feature/get all elements (#2939) * Hallo * Hallo Leute * adding first draft of simple_hl_plot a function to easily highlight buses and lines paired with a hover functionality * added function to get a dataframe of all elements in the net * add test clean comments renaming * add test * add docu * add changelog entry * ltds_fix (#2938) * updated ltds notebooks * updated ltds notebooks, fixed LTDS converter * added pytest split to tutorial_test pipeline (#2935) * added pytest split to tutorial_test pipeline * added notebook test times * fixed many links (#2937) other formatting Co-authored-by: V3 <mike.vogt@iee.fraunhofer.de> * Fix copyright text formatting in LICENSE file (#2914) * Fix copyright text formatting in LICENSE file * Refactor copyright notice in LICENSE Updated copyright notice formatting in LICENSE file following [upstream changes](licensee/licensee#950) to handle multi-line attribution. --------- Co-authored-by: KS_HTK <2981026+KS-HTK@users.noreply.github.com> * added PowerElectronicsConnection to the LTDS converter, updated LTDS notebooks (PowerElectronicsConnection) (#2942) Co-authored-by: David Heck <david.heck@iee.fraunhofer.de> * ltds_pce (#2944) * added PowerElectronicsConnection to the LTDS converter, updated LTDS notebooks (PowerElectronicsConnection) * updated LTDS notebooks for mapping Excel data * ltds_notebook (#2949) * updated ltds notebooks * updated LTDS notebooks for mapping Excel data * updated LTDS notebooks for mapping Excel data * ltds_notebook (#2950) * updated ltds notebooks * updated LTDS notebooks for mapping Excel data * updated LTDS notebooks for mapping Excel data * UKPN Jupiter Notebook * fix UKPN Jupiter Notebook * Feature check vkr percent (#2948) * added check to check if vkr_percent values are reasonable. * added changelog entry. --------- Co-authored-by: KS_HTK <2981026+KS-HTK@users.noreply.github.com> * Feature additional diagnostic functions (#2952) * added more diagnostic functions. * added changelog entry. * fixed a small bug, used the wrong value in the reactance field. * Correct loading_percent description in motor_par.csv (#2947) Updated the description of loading_percent. * ucte2pp conversion fixes (#2823) * consider empty R dataframe in ucte conversion * convert impedances and trafos with G/B=NaN to G/B=0 * change fillna for trafos and impedances to the ucte_parser * fillna df if 0 * fix nan values in impedances and trafos * ucte2pp: averaging voltages and clean up parser * changelog entries for ucte2pp fixes * average voltage setpoints using topological search instead of ucte name * empty space at EOF * fix codacy issue * remove create_switch from pp_import_functions * fix create_vsc functions * changelog :) * change symmetrical tap changer to 90 degree tap step degree * correct handling of symmetrical PSTs in ucte2pp * comment averaging function based on PR review * changes ucte converter * ucte2pp: add flag for voltage harmonization, with default false * fix test * fix tests and restrict tolerances a bit --------- Co-authored-by: mrichter <mario.richter@iee.fraunhofer.de> Co-authored-by: V3 <mike.vogt@iee.fraunhofer.de> * Fix 2733 (#2951) * change patch sizes for plot (#2733) * fix patch sizes for plot only once (#2733) `get_collection_sizes()` takes arguments to adjust the relative size of an element. --------- Co-authored-by: V3 <mike.vogt@iee.fraunhofer.de> * Fix runopp(init="results") so the OPF solver preserves the model initial vector (#2902) * Fix runopp(init=results) warm-start handling in pips OPF * Update CHANGELOG for upcoming release fixes and features --------- Co-authored-by: jereOG <jerelang@users.noreply.github.com> Co-authored-by: V3 <mike.vogt@iee.fraunhofer.de> * Feature/highlight plot (#2833) * integrated highlighting feature into simple_plot * integrated hover feature into simple_plot * update plotting tutorial * adjust color * Fix unit g0_us (#2958) attribute name g0_us_per_km is incorrectly named as g0_nf_per_km in add_zero_impedance_parameters function. * updated branding with versions from marketing (#2953) * [IMPROVEMENT] fix `bool` parameters input in `read_excel` and add `add_basic_std_types` parameter (#2961) * Add basic std types flag to from_excel Signed-off-by: furqan463 <ahmadfurqanc@gmail.com> * Fix reading bool Signed-off-by: furqan463 <ahmadfurqanc@gmail.com> * Fix backward compatibility Signed-off-by: furqan463 <ahmadfurqanc@gmail.com> * Silence sonarcloud and codacy Signed-off-by: furqan463 <ahmadfurqanc@gmail.com> * Remove ruff ignore --------- Signed-off-by: furqan463 <ahmadfurqanc@gmail.com> * added permissions block to all workflows (#2964) * updated the issue templates to use the issue types instead of labels and title (#2966) minor changes in forms layouts * Feature/revised issue templates (#2967) * updated the issue templates to use the issue types instead of labels and title minor changes in forms layouts * fix for config not parsing by github (hopefully) added documentation template added emoji to template title for more visual guidance * uniform formatting for templates * added missing blank line at end of file * fixed change from merge --------- Signed-off-by: furqan463 <ahmadfurqanc@gmail.com> Co-authored-by: Jan Wiemer <32835953+jwiemer112@users.noreply.github.com> Co-authored-by: mrifraunhofer <94368111+mrifraunhofer@users.noreply.github.com> Co-authored-by: V3 <mike.vogt@iee.fraunhofer.de> Co-authored-by: Bryn Pickering <17178478+brynpickering@users.noreply.github.com> Co-authored-by: David Heck <david.heck@iee.fraunhofer.de> Co-authored-by: Arisaka97 <solitaire2312@gmail.com> Co-authored-by: pawellytaev <86314586+pawellytaev@users.noreply.github.com> Co-authored-by: mrichter <mario.richter@iee.fraunhofer.de> Co-authored-by: Moritz <29129441+MoritzHauff@users.noreply.github.com> Co-authored-by: Jeremias Lang <158100420+jerelang@users.noreply.github.com> Co-authored-by: jereOG <jerelang@users.noreply.github.com> Co-authored-by: Engr. Ahmad Furqan <ahmadfurqanc@gmail.com>
1 parent 2a5c725 commit 9ab37d0

40 files changed

Lines changed: 2196 additions & 579 deletions
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Bug Report
1+
---
2+
name: "🐛 Bug report"
23
description: Report incorrect behavior in the pandapower library
3-
title: '[bug] YOUR TITLE'
4-
labels: bug
4+
type: bug
55

66
body:
77
- type: checkboxes
@@ -24,22 +24,6 @@ body:
2424
Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath
2525
required: true
2626
27-
- type: textarea
28-
id: example
29-
attributes:
30-
label: Reproducible Example
31-
description: >
32-
Please follow [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) on how to
33-
provide a minimal, copy-pastable example.
34-
placeholder: >
35-
from pandapower.create import create_empty_network
36-
37-
net = create_empty_network()
38-
39-
...
40-
render: python
41-
validations:
42-
required: true
4327
- type: textarea
4428
id: problem
4529
attributes:
@@ -56,22 +40,38 @@ body:
5640
Please describe or show a code example of the expected behavior.
5741
validations:
5842
required: true
43+
- type: textarea
44+
id: example
45+
attributes:
46+
label: Reproducible Example
47+
description: >
48+
Please follow [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) on how to
49+
provide a minimal, copy-pastable example.
50+
placeholder: >
51+
from pandapower.create import create_empty_network
52+
53+
net = create_empty_network()
54+
55+
...
56+
render: python
57+
validations:
58+
required: true
5959
- type: textarea
6060
id: version
6161
attributes:
6262
label: Installed Versions
6363
description: >
6464
Please paste the output of ``pd.show_versions()``
6565
value: >
66-
* python version:
67-
* pandas version:
68-
* networkx version:
69-
* scipy version:
70-
* numpy version:
71-
* packaging version:
72-
* tqdm version:
73-
* deepdiff version:
74-
* Operating System name/version:
66+
* Operating System name/version:
67+
* python version:
68+
* pandas version:
69+
* networkx version:
70+
* scipy version:
71+
* numpy version:
72+
* packaging version:
73+
* tqdm version:
74+
* deepdiff version:
7575
validations:
7676
required: true
7777
- type: checkboxes

.github/ISSUE_TEMPLATE/feature_request.yaml renamed to .github/ISSUE_TEMPLATE/02-feature-request.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Feature Request
1+
---
2+
name: "✨ Feature request"
23
description: Suggest an idea for pandapower
3-
title: '[feature] YOUR TITLE'
4-
labels: [Enhancement]
4+
type: feature
55

66
body:
77
- type: checkboxes
@@ -16,18 +16,15 @@ body:
1616
Read the relevant sections of the [documentation](https://pandapower.readthedocs.io/en/latest/about.html)
1717
- label: >
1818
Browse the repository, [tutorials](https://github.com/e2nIEE/pandapower/tree/develop/tutorials) and [tests](https://github.com/e2nIEE/pandapower/tree/develop/pandapower/test) for already existing functionalities
19-
- type: checkboxes
19+
- type: dropdown
2020
id: feature_checks
2121
attributes:
2222
label: Feature Type
23-
description: Please check what type of feature request you would like to propose.
23+
description: Please select what type of feature you would like to propose.
2424
options:
25-
- label: >
26-
Adding new functionality to pandapower
27-
- label: >
28-
Changing existing functionality in pandapower
29-
- label: >
30-
Removing existing functionality in pandapower
25+
- Adding new functionality
26+
- Changing existing functionality
27+
- Removing existing functionality
3128
- type: textarea
3229
id: description
3330
attributes:
@@ -55,7 +52,7 @@ body:
5552
id: label_checks
5653
attributes:
5754
label: Label
58-
description: Choose `labels` at the right side (e.g. `bug`, `controller`, `OPF`...).
55+
description: Choose `labels` at the right side (e.g. `controller`, `OPF`...).
5956
options:
6057
- label: >
6158
Relevant labels are selected
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: "📝 Documentation"
3+
description: Something is missing or wrong in the documentation.
4+
labels: ["docs/tutorials"]
5+
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: What is wrong in the documentation?
10+
description: Tell us, what is wrong in the documentation?
11+
validations:
12+
required: false
13+
14+
- type: textarea
15+
attributes:
16+
label: What is missing in the documentation?
17+
description: Tell us, what is missing in the documentation?
18+
validations:
19+
required: false
20+
21+
- type: dropdown
22+
attributes:
23+
label: Are you willing to provide a PR to address this?
24+
options:
25+
- "Yes"
26+
- "No"

.github/ISSUE_TEMPLATE/blank_template.yaml renamed to .github/ISSUE_TEMPLATE/10-blank-template.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
---
12
name: Blank template
23
description: Template for issues that are no bug report or feature request
3-
title: 'YOUR TITLE'
4-
labels: []
54

65
body:
76
- type: checkboxes
@@ -15,7 +14,7 @@ body:
1514
- label: >
1615
Read the relevant sections of the [documentation](https://pandapower.readthedocs.io/en/latest/about.html)
1716
- label: >
18-
Browse the [tutorials](https://github.com/e2nIEE/pandapower/tree/develop/tutorials) and [tests](https://github.com/e2nIEE/pandapower/tree/develop/pandapower/test) for usefull code snippets and examples of use
17+
Browse the [tutorials](https://github.com/e2nIEE/pandapower/tree/develop/tutorials) and [tests](https://github.com/e2nIEE/pandapower/tree/develop/pandapower/test) for useful code snippets and examples of use
1918
- type: textarea
2019
id: description
2120
attributes:
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
---
12
# disable blank issue creation
23
blank_issues_enabled: false
34
#
45
contact_links:
5-
- name: pandapower discussions
6+
- name: pandapower discussions
67
url: https://github.com/e2nIEE/pandapower/discussions
7-
# about: Please ask and answer questions here.
8+
about: Please ask and answer questions here.
89
# - name: GitHub Security Bug Bounty
910
# url: https://bounty.github.com/
1011
# about: Please report security vulnerabilities here.

.github/workflows/github_test_action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- 'CHANGELOG.rst'
1313
- '**/CHANGELOG.rst'
1414

15+
permissions:
16+
contents: read
17+
1518
# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
1619
concurrency:
1720
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/test_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
branches:
1111
- release/*
1212

13+
permissions:
14+
contents: read
15+
1316
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1417
jobs:
1518

.github/workflows/upload_release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
- 'testpypi'
1818
- 'pypi'
1919

20+
permissions:
21+
contents: read
22+
id-token: none
23+
2024
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2125
jobs:
2226
upload:

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@ Change Log
33

44
[upcoming release] - 2026-..-..
55
-------------------------------
6+
- [FIXED] runopp(init="results") now preserves the warm-start vector in the PIPS-backed AC OPF solver
7+
- [ADDED] added more functions to diagnostic
8+
- [ADDED] check to check if vkr_percent values are reasonable (see issue #786).
69
- [FIXED] cim2pp shift_lv_degree was translated from wrong entry
710
- [FIXED] UnboundLocalError in _from_ppc_branch when creating impedance elements
811
- [ADDED] LTDS support
12+
- [FIXED] ucte2pp: voltage setpoints from gens connected to the same busbar are now averaged
13+
- [FIXED] ucte2pp: small X values are clipped to 0.05 Ohm (according to UCTE-DEF) to increase convergence
14+
- [FIXED] ucte2pp: symmetrical tap changers are now handled as symmetrical tap changers in pandapower (not ideal phase shifters)
15+
- [FIXED] ucte2pp: prevent nan values for impedances and transformers for B/G/P_fe/i0
916
- [FIXED] cim2pp: CimConverter backwards-compatible (default value for cin_version)
1017
- [FIXED] jao converter: calculation of trafo parameters is based on primary side (hv) now
1118
- [ADDED] toolbox: :code:`get_all_elements` returns all elements of a pp.pandapowerNet as a DataFrame
19+
- [ADDED] highlighting feature and hovering functionality to :code:`simple_plot()`
1220

1321
[3.4.0] - 2026-02-09
1422
-------------------------------

README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
.. image:: https://www.pandapower.org/images/pp.svg
1+
.. image:: https://www.pandapower.org/images/pandapower_color.svg
32
:target: https://www.pandapower.org
43
:alt: logo
54

@@ -74,7 +73,7 @@ To get realistic load profile data and grid models across all voltage levels tha
7473
be used in pandapower, have a look at the *SimBench* `project website <https://www.simbench.net>`_ or
7574
`on GitHub <https://github.com/e2nIEE/simbench>`_.
7675

77-
.. image:: https://www.pandapipes.org/images/pp.svg
76+
.. image:: https://www.pandapipes.org/images/pandapipes_color.svg
7877
:target: https://www.pandapipes.org
7978
:width: 270pt
8079
:alt: pandapipes_logo

0 commit comments

Comments
 (0)