power-grid-model-ds 1.3.0__py3-none-any.whl → 1.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- power_grid_model_ds/_core/model/graphs/models/base.py +1 -1
- power_grid_model_ds/_core/model/grids/helpers.py +1 -1
- {power_grid_model_ds-1.3.0.dist-info → power_grid_model_ds-1.3.2.dist-info}/METADATA +4 -1
- {power_grid_model_ds-1.3.0.dist-info → power_grid_model_ds-1.3.2.dist-info}/RECORD +7 -7
- {power_grid_model_ds-1.3.0.dist-info → power_grid_model_ds-1.3.2.dist-info}/WHEEL +1 -1
- {power_grid_model_ds-1.3.0.dist-info → power_grid_model_ds-1.3.2.dist-info}/licenses/LICENSE +0 -0
- {power_grid_model_ds-1.3.0.dist-info → power_grid_model_ds-1.3.2.dist-info}/top_level.txt +0 -0
@@ -208,7 +208,7 @@ class BaseGraphModel(ABC):
|
|
208
208
|
yield
|
209
209
|
|
210
210
|
for node in nodes:
|
211
|
-
self.add_node(node)
|
211
|
+
self.add_node(int(node)) # convert to int to avoid type issues when input is e.g. a numpy array
|
212
212
|
for source, target in edge_list:
|
213
213
|
self.add_branch(source, target)
|
214
214
|
|
@@ -46,7 +46,7 @@ def set_feeder_ids(grid: "Grid"):
|
|
46
46
|
"""
|
47
47
|
_reset_feeder_ids(grid)
|
48
48
|
feeder_node_ids = grid.node.filter(node_type=NodeType.SUBSTATION_NODE)["id"]
|
49
|
-
with grid.graphs.active_graph.tmp_remove_nodes(feeder_node_ids):
|
49
|
+
with grid.graphs.active_graph.tmp_remove_nodes(feeder_node_ids.tolist()):
|
50
50
|
components = grid.graphs.active_graph.get_components()
|
51
51
|
for component_node_ids in components:
|
52
52
|
component_branches = _get_active_component_branches(grid, component_node_ids)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: power-grid-model-ds
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.2
|
4
4
|
Summary: Power Grid Model extension which provides a grid data structure for simulation and analysis
|
5
5
|
Author-email: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
|
6
6
|
License: MPL-2.0
|
@@ -94,6 +94,9 @@ Some highlighted features:
|
|
94
94
|
can be used to analyze the network.
|
95
95
|
- An interface to model network mutations which is useful in
|
96
96
|
simulation use-cases.
|
97
|
+
- Visualization for easy exploration and debugging.
|
98
|
+
|
99
|
+
<img width="40%" alt="Grid Visualisation" src="docs/_static/grid-force-directed.png" />
|
97
100
|
|
98
101
|
See the [power-grid-model-ds documentation](https://power-grid-model-ds.readthedocs.io/en/stable/) for more information.
|
99
102
|
|
@@ -47,12 +47,12 @@ power_grid_model_ds/_core/model/graphs/container.py,sha256=ZsE6Wr7DvVcYJYjvBszqn
|
|
47
47
|
power_grid_model_ds/_core/model/graphs/errors.py,sha256=-9fAsCqpKM0-lCM-tO2fVot9hqZBJa8WCxxqWEH_z6k,479
|
48
48
|
power_grid_model_ds/_core/model/graphs/models/__init__.py,sha256=xwhMajQKIAfL1R3cq2sMNXMWtqfI5WGBi6-P4clyTes,262
|
49
49
|
power_grid_model_ds/_core/model/graphs/models/_rustworkx_search.py,sha256=TqRR22TPx8XjRLukQxK8R8FjZvJ60CttDFctbISSbOM,2979
|
50
|
-
power_grid_model_ds/_core/model/graphs/models/base.py,sha256=
|
50
|
+
power_grid_model_ds/_core/model/graphs/models/base.py,sha256=OyhSN4Vn3otM20HDBt0Y6aXeQW7Lis7MuTgGe9aeEgM,17637
|
51
51
|
power_grid_model_ds/_core/model/graphs/models/rustworkx.py,sha256=jccM7MUhNqH2215mk_X8ihQ-Q8IkjjRhUk4jSruaxy8,6158
|
52
52
|
power_grid_model_ds/_core/model/grids/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
53
53
|
power_grid_model_ds/_core/model/grids/_text_sources.py,sha256=3CWn0zjaUkFhrnSEIqAas52xeW0EX3EWXIXyo8XSQgw,4229
|
54
54
|
power_grid_model_ds/_core/model/grids/base.py,sha256=8AQdqPuVLBjOKE2JQvlrQErq8NcCowot3SUlJvcmYvA,16592
|
55
|
-
power_grid_model_ds/_core/model/grids/helpers.py,sha256=
|
55
|
+
power_grid_model_ds/_core/model/grids/helpers.py,sha256=lMUEER6l5MfdgLBIesSo_KnqK_K1CyRtu1dj33q924c,4244
|
56
56
|
power_grid_model_ds/_core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
57
57
|
power_grid_model_ds/_core/utils/misc.py,sha256=aAdlXjyKN6_T4b_CQZ879TbkbDZW4TwBUsxTpkwvymU,1228
|
58
58
|
power_grid_model_ds/_core/utils/pickle.py,sha256=LGeTc7nu9RY1noOzLJzYaSHSWIgqzHy2xhmueKGuipc,1445
|
@@ -74,8 +74,8 @@ power_grid_model_ds/_core/visualizer/layout/header.py,sha256=el-5SlWIPeEbZZLbi3v
|
|
74
74
|
power_grid_model_ds/_core/visualizer/layout/legenda.py,sha256=8JTrMRgaYRaSIXAEoM0b3PgX7AYvW0_fHuYg8nY4y0g,2161
|
75
75
|
power_grid_model_ds/_core/visualizer/layout/search_form.py,sha256=4LPU6MjD3QEIeBEOOWBvV5-GyLMqNYWyKcUa_oWScCs,2002
|
76
76
|
power_grid_model_ds/_core/visualizer/layout/selection_output.py,sha256=fuPAdG5XmTj2E0oQ8w_tp9PGbB8bJ5fguteLtnM1EDg,534
|
77
|
-
power_grid_model_ds-1.3.
|
78
|
-
power_grid_model_ds-1.3.
|
79
|
-
power_grid_model_ds-1.3.
|
80
|
-
power_grid_model_ds-1.3.
|
81
|
-
power_grid_model_ds-1.3.
|
77
|
+
power_grid_model_ds-1.3.2.dist-info/licenses/LICENSE,sha256=GpbnG1pNl-ORtSP6dmHeiZvwy36UFli6MEZy1XlmBqo,14906
|
78
|
+
power_grid_model_ds-1.3.2.dist-info/METADATA,sha256=drQ-xi6jPybow7UwgXd0_F3LLAP8BTfJqccaUYTrUf8,9353
|
79
|
+
power_grid_model_ds-1.3.2.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
80
|
+
power_grid_model_ds-1.3.2.dist-info/top_level.txt,sha256=nJa103Eqvm5TESYEKPFVImfLg_ugGOBznikrM-rZQZg,20
|
81
|
+
power_grid_model_ds-1.3.2.dist-info/RECORD,,
|
{power_grid_model_ds-1.3.0.dist-info → power_grid_model_ds-1.3.2.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|