Docstring and coords update
Showing 1 of 1 files from the diff.
pandapower/create.py
changed.
@@ -543,14 +543,14 @@
Loading
543 | 543 | INPUT: |
|
544 | 544 | **net** (pandapowerNet) - The pandapower network in which the element is created |
|
545 | 545 | ||
546 | + | **vn_kv** (float) - The grid voltage level. |
|
547 | + | ||
546 | 548 | OPTIONAL: |
|
547 | 549 | **name** (string, default None) - the name for this bus |
|
548 | 550 | ||
549 | 551 | **index** (int, default None) - Force a specified ID if it is available. If None, the \ |
|
550 | 552 | index one higher than the highest already existing index is selected. |
|
551 | 553 | ||
552 | - | **vn_kv** (float) - The grid voltage level. |
|
553 | - | ||
554 | 554 | **geodata** ((x,y)-tuple, default None) - coordinates used for plotting |
|
555 | 555 | ||
556 | 556 | **type** (string, default "b") - Type of the bus. "n" - node, |
@@ -587,6 +587,7 @@
Loading
587 | 587 | net["bus_geodata"].loc[index, ["x", "y"]] = geodata |
|
588 | 588 | ||
589 | 589 | if coords is not None: |
|
590 | + | net["bus_geodata"].at[index, "coords"] = None |
|
590 | 591 | net["bus_geodata"].at[index, "coords"] = coords |
|
591 | 592 | ||
592 | 593 | # column needed by OPF. 0. and 2. are the default maximum / minimum voltages |
Files | Coverage |
---|---|
pandapower | 76.72% |
setup.py | 0.00% |
Project Totals (189 files) | 76.67% |
3188783531
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.