power-grid-model 1.12.63__py3-none-musllinux_1_2_x86_64.whl → 1.12.80__py3-none-musllinux_1_2_x86_64.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.
Potentially problematic release.
This version of power-grid-model might be problematic. Click here for more details.
- power_grid_model/_core/power_grid_model.py +32 -3
- power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/dataset_definitions.h +2 -0
- power_grid_model/_core/power_grid_model_c/lib/cmake/power_grid_model/power_grid_modelConfigVersion.cmake +3 -3
- power_grid_model/_core/power_grid_model_c/lib/cmake/power_grid_model/power_grid_modelTargets-release.cmake +3 -3
- power_grid_model/_core/power_grid_model_c/lib/libpower_grid_model_c.so +0 -0
- power_grid_model/_core/power_grid_model_c/lib/libpower_grid_model_c.so.1.12.80 +0 -0
- power_grid_model/validation/errors.py +1 -1
- {power_grid_model-1.12.63.dist-info → power_grid_model-1.12.80.dist-info}/METADATA +3 -1
- {power_grid_model-1.12.63.dist-info → power_grid_model-1.12.80.dist-info}/RECORD +13 -12
- power_grid_model-1.12.80.dist-info/sboms/auditwheel.cdx.json +1 -0
- power_grid_model/_core/power_grid_model_c/lib/libpower_grid_model_c.so.1.12.63 +0 -0
- {power_grid_model-1.12.63.dist-info → power_grid_model-1.12.80.dist-info}/WHEEL +0 -0
- {power_grid_model-1.12.63.dist-info → power_grid_model-1.12.80.dist-info}/entry_points.txt +0 -0
- {power_grid_model-1.12.63.dist-info → power_grid_model-1.12.80.dist-info}/licenses/LICENSE +0 -0
|
@@ -7,7 +7,7 @@ Main power grid model class
|
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
9
|
from enum import IntEnum
|
|
10
|
-
from typing import overload
|
|
10
|
+
from typing import Any, overload
|
|
11
11
|
|
|
12
12
|
import numpy as np
|
|
13
13
|
|
|
@@ -108,9 +108,38 @@ class PowerGridModel:
|
|
|
108
108
|
new_model._all_component_count = self._all_component_count
|
|
109
109
|
return new_model
|
|
110
110
|
|
|
111
|
-
def __copy__(self):
|
|
111
|
+
def __copy__(self) -> "PowerGridModel":
|
|
112
112
|
return self.copy()
|
|
113
113
|
|
|
114
|
+
def __deepcopy__(self, memo: dict[int, Any]) -> "PowerGridModel":
|
|
115
|
+
# PowerGridModel.copy makes already a deepcopy
|
|
116
|
+
new_model = self.copy()
|
|
117
|
+
|
|
118
|
+
# memorize that this object (self) has been deepcopied
|
|
119
|
+
memo[id(self)] = new_model
|
|
120
|
+
|
|
121
|
+
return new_model
|
|
122
|
+
|
|
123
|
+
def __repr__(self) -> str:
|
|
124
|
+
"""Return a string representation of the current model.
|
|
125
|
+
|
|
126
|
+
This includes the total number of components and the number of components per component type of the model.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
String representation of the model
|
|
130
|
+
"""
|
|
131
|
+
try:
|
|
132
|
+
component_count = self.all_component_count
|
|
133
|
+
except TypeError:
|
|
134
|
+
component_count = {}
|
|
135
|
+
|
|
136
|
+
message = f"{self.__class__.__name__} ({sum(component_count.values())} components)\n"
|
|
137
|
+
|
|
138
|
+
for component_type, number in component_count.items():
|
|
139
|
+
message += f" - {component_type.value}: {number}\n"
|
|
140
|
+
|
|
141
|
+
return message
|
|
142
|
+
|
|
114
143
|
def __new__(cls, *_args, **_kwargs):
|
|
115
144
|
instance = super().__new__(cls)
|
|
116
145
|
instance._model_ptr = ModelPtr()
|
|
@@ -229,7 +258,7 @@ class PowerGridModel:
|
|
|
229
258
|
if key_enum in kwargs:
|
|
230
259
|
value_enum = kwargs[key_enum]
|
|
231
260
|
if isinstance(value_enum, str):
|
|
232
|
-
kwargs[key_enum] = type_[value_enum]
|
|
261
|
+
kwargs[key_enum] = type_[value_enum] # NOSONAR(S5864) IntEnum has __getitem__
|
|
233
262
|
|
|
234
263
|
as_enum_value("calculation_method", CalculationMethod)
|
|
235
264
|
as_enum_value("tap_changing_strategy", TapChangingStrategy)
|
|
@@ -122,6 +122,8 @@ PGM_API extern PGM_MetaAttribute const* const PGM_def_input_transformer_uk;
|
|
|
122
122
|
PGM_API extern PGM_MetaAttribute const* const PGM_def_input_transformer_pk;
|
|
123
123
|
PGM_API extern PGM_MetaAttribute const* const PGM_def_input_transformer_i0;
|
|
124
124
|
PGM_API extern PGM_MetaAttribute const* const PGM_def_input_transformer_p0;
|
|
125
|
+
PGM_API extern PGM_MetaAttribute const* const PGM_def_input_transformer_i0_zero_sequence;
|
|
126
|
+
PGM_API extern PGM_MetaAttribute const* const PGM_def_input_transformer_p0_zero_sequence;
|
|
125
127
|
PGM_API extern PGM_MetaAttribute const* const PGM_def_input_transformer_winding_from;
|
|
126
128
|
PGM_API extern PGM_MetaAttribute const* const PGM_def_input_transformer_winding_to;
|
|
127
129
|
PGM_API extern PGM_MetaAttribute const* const PGM_def_input_transformer_clock;
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
# The variable CVF_VERSION must be set before calling configure_file().
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
set(PACKAGE_VERSION "1.12.
|
|
12
|
+
set(PACKAGE_VERSION "1.12.80")
|
|
13
13
|
|
|
14
14
|
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
|
15
15
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
16
16
|
else()
|
|
17
17
|
|
|
18
|
-
if("1.12.
|
|
18
|
+
if("1.12.80" MATCHES "^([0-9]+)\\.")
|
|
19
19
|
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
|
20
20
|
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
|
|
21
21
|
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
|
|
22
22
|
endif()
|
|
23
23
|
else()
|
|
24
|
-
set(CVF_VERSION_MAJOR "1.12.
|
|
24
|
+
set(CVF_VERSION_MAJOR "1.12.80")
|
|
25
25
|
endif()
|
|
26
26
|
|
|
27
27
|
if(PACKAGE_FIND_VERSION_RANGE)
|
|
@@ -8,12 +8,12 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
|
8
8
|
# Import target "power_grid_model::power_grid_model_c" for configuration "Release"
|
|
9
9
|
set_property(TARGET power_grid_model::power_grid_model_c APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
10
10
|
set_target_properties(power_grid_model::power_grid_model_c PROPERTIES
|
|
11
|
-
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libpower_grid_model_c.so.1.12.
|
|
12
|
-
IMPORTED_SONAME_RELEASE "libpower_grid_model_c.so.1.12.
|
|
11
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libpower_grid_model_c.so.1.12.80"
|
|
12
|
+
IMPORTED_SONAME_RELEASE "libpower_grid_model_c.so.1.12.80"
|
|
13
13
|
)
|
|
14
14
|
|
|
15
15
|
list(APPEND _cmake_import_check_targets power_grid_model::power_grid_model_c )
|
|
16
|
-
list(APPEND _cmake_import_check_files_for_power_grid_model::power_grid_model_c "${_IMPORT_PREFIX}/lib/libpower_grid_model_c.so.1.12.
|
|
16
|
+
list(APPEND _cmake_import_check_files_for_power_grid_model::power_grid_model_c "${_IMPORT_PREFIX}/lib/libpower_grid_model_c.so.1.12.80" )
|
|
17
17
|
|
|
18
18
|
# Commands beyond this point should not need to know the version.
|
|
19
19
|
set(CMAKE_IMPORT_FILE_VERSION)
|
|
Binary file
|
|
@@ -194,7 +194,7 @@ class MultiComponentValidationError(ValidationError):
|
|
|
194
194
|
fields: List of field names, formatted as tuples (component, field)
|
|
195
195
|
ids: List of component IDs (not row indices), formatted as tuples (component, id)
|
|
196
196
|
"""
|
|
197
|
-
self.component = sorted(
|
|
197
|
+
self.component = sorted({component for component, _ in fields}, key=str)
|
|
198
198
|
self.field = sorted(fields)
|
|
199
199
|
self.ids = sorted(ids)
|
|
200
200
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: power-grid-model
|
|
3
|
-
Version: 1.12.
|
|
3
|
+
Version: 1.12.80
|
|
4
4
|
Summary: Python/C++ library for distribution power system analysis
|
|
5
5
|
Author-Email: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
|
|
6
6
|
License-Expression: MPL-2.0
|
|
@@ -27,6 +27,8 @@ Requires-Dist: pre-commit; extra == "dev"
|
|
|
27
27
|
Requires-Dist: pytest; extra == "dev"
|
|
28
28
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
29
29
|
Requires-Dist: ruff; extra == "dev"
|
|
30
|
+
Requires-Dist: mypy; extra == "dev"
|
|
31
|
+
Requires-Dist: gersemi; extra == "dev"
|
|
30
32
|
Provides-Extra: doc
|
|
31
33
|
Requires-Dist: sphinx; extra == "doc"
|
|
32
34
|
Requires-Dist: breathe; extra == "doc"
|
|
@@ -18,7 +18,7 @@ power_grid_model/_core/options.py,sha256=i__QhCgk0idg-WF1jXUXae5PZ5qh1RMIgwYe8kb
|
|
|
18
18
|
power_grid_model/_core/power_grid_core.py,sha256=sE1I6DEanAifUEnAgiVLUzMdMR1CCLO3f8jl20cpR2c,17059
|
|
19
19
|
power_grid_model/_core/power_grid_dataset.py,sha256=W50zKT1IyXVQYRENqoQThtEHDPttwGjM9EMdxR3wSkU,18372
|
|
20
20
|
power_grid_model/_core/power_grid_meta.py,sha256=pR1pLy_jGplTCnzaZBcm8WUSbvbwejyB8U4G-AFwflU,7758
|
|
21
|
-
power_grid_model/_core/power_grid_model.py,sha256=
|
|
21
|
+
power_grid_model/_core/power_grid_model.py,sha256=wf3dZAQVuDAfvUoWAW6lIgxtaKd-8Zblt2iQJyGNcOA,40711
|
|
22
22
|
power_grid_model/_core/serialization.py,sha256=aZBr9qjYiYi1jcwfDk267euMf7WSHlMvNgcDYZ5KCBA,10049
|
|
23
23
|
power_grid_model/_core/typing.py,sha256=Mt1DJ62tHS3R9SQzdvM64L6Q8tvMCPQVAKGHAt8GM0U,637
|
|
24
24
|
power_grid_model/_core/utils.py,sha256=n2n2NnbwiL89kxNIg7-EBHOYNR5e9a4O2ExP5uaxz7M,31171
|
|
@@ -29,7 +29,7 @@ power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp.hpp,sha25
|
|
|
29
29
|
power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/basics.h,sha256=ticq5jaRFhjCMVPs2oHk9EicI5m2Vao--OuZpLaSXL8,7514
|
|
30
30
|
power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/buffer.h,sha256=A-ByuDfQmPCYf5HCeOHim872DiwA66ORHcw17HnptIE,4658
|
|
31
31
|
power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/dataset.h,sha256=yuCnInKgUEHn77htlt4Pqq2QKsthcRIUFPCWpPeaYUM,14468
|
|
32
|
-
power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/dataset_definitions.h,sha256=
|
|
32
|
+
power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/dataset_definitions.h,sha256=WNx7oFbQTcMLFHrwAMv0Q0GaiXHcXFcxAtMtC9EXpnE,74751
|
|
33
33
|
power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/handle.h,sha256=bxHBCqdewukaqKKKfCih95zbf06hDCMKf7tnxE5-jBQ,3100
|
|
34
34
|
power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/meta_data.h,sha256=JacYKWKTW-x8uiKtsA76pLFLmWXEkksCQa_l3eDQPWo,6064
|
|
35
35
|
power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/model.h,sha256=5YvpIUdMNgI0CTiEERhwpQQy6A3yreEe3bFjSI4ZNnA,5039
|
|
@@ -44,11 +44,11 @@ power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/model.hpp
|
|
|
44
44
|
power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/options.hpp,sha256=unyQ10NEUIgP_cx2jH6w9lseEFtYfn9DTwganUT2bHg,1842
|
|
45
45
|
power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/serialization.hpp,sha256=LIkQYR3EMEOVP2RzmlZjIRBxshEvju2IcWvzCu4edLM,5488
|
|
46
46
|
power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/utils.hpp,sha256=6ChIg9Oen4T3kCGkhPbPlTaVg82ujJ28OUSfXsJlWRI,2968
|
|
47
|
-
power_grid_model/_core/power_grid_model_c/lib/libpower_grid_model_c.so,sha256=
|
|
48
|
-
power_grid_model/_core/power_grid_model_c/lib/libpower_grid_model_c.so.1.12.
|
|
47
|
+
power_grid_model/_core/power_grid_model_c/lib/libpower_grid_model_c.so,sha256=uZC-y162I45xWtLn0V-yJwZCHknrHSUPn3xlrmYkz4o,2472049
|
|
48
|
+
power_grid_model/_core/power_grid_model_c/lib/libpower_grid_model_c.so.1.12.80,sha256=uZC-y162I45xWtLn0V-yJwZCHknrHSUPn3xlrmYkz4o,2472049
|
|
49
49
|
power_grid_model/_core/power_grid_model_c/lib/cmake/power_grid_model/power_grid_modelConfig.cmake,sha256=9Dg_TwOMLciG7TTk1TKehfUbAErFtJlRagTeu_QC8Vg,1243
|
|
50
|
-
power_grid_model/_core/power_grid_model_c/lib/cmake/power_grid_model/power_grid_modelConfigVersion.cmake,sha256=
|
|
51
|
-
power_grid_model/_core/power_grid_model_c/lib/cmake/power_grid_model/power_grid_modelTargets-release.cmake,sha256=
|
|
50
|
+
power_grid_model/_core/power_grid_model_c/lib/cmake/power_grid_model/power_grid_modelConfigVersion.cmake,sha256=2IXB9c3SuKnIP54Cek6rnFzn0X56me0Aj4Jm-Tp2JfY,2768
|
|
51
|
+
power_grid_model/_core/power_grid_model_c/lib/cmake/power_grid_model/power_grid_modelTargets-release.cmake,sha256=uIX_vjDnDzcqb1XNv-HKhJlUKURY5PFQiD7ktYxs9Bc,1006
|
|
52
52
|
power_grid_model/_core/power_grid_model_c/lib/cmake/power_grid_model/power_grid_modelTargets.cmake,sha256=q8v9QYCdmb_xsFXU1A_iSJv9_-euneAsmIgKBS4dBCI,6564
|
|
53
53
|
power_grid_model/_core/power_grid_model_c/share/LICENSE,sha256=7Pm2fWFFHHUG5lDHed1vl5CjzxObIXQglnYsEdtjo_k,14907
|
|
54
54
|
power_grid_model/_core/power_grid_model_c/share/README.md,sha256=X2nGLPPQW6-7ZcyMxAw98j-69z5-gFwSoUCuFFDhjlA,588
|
|
@@ -56,12 +56,13 @@ power_grid_model/validation/__init__.py,sha256=3k2wLJS3nkEdsM17_k4-zNMHgbflLmPOn
|
|
|
56
56
|
power_grid_model/validation/_rules.py,sha256=Bj1UTtHYEec-H0SUGkiFxS13lIhOforXLAgZuSI405I,52157
|
|
57
57
|
power_grid_model/validation/_validation.py,sha256=z40DDIPAf3MUEGQmwOrZYg3YYAnp_Wq4gkCEIK0pl6g,48781
|
|
58
58
|
power_grid_model/validation/assertions.py,sha256=VmbiLTU04Lu5GDywKrcjNVEQcDiGxQLoUE-hlI790_Q,4102
|
|
59
|
-
power_grid_model/validation/errors.py,sha256=
|
|
59
|
+
power_grid_model/validation/errors.py,sha256=FzO_HJeMrOgOh4wlB-bA7zj1DpBKoaJnnmOnmo8c8y0,20450
|
|
60
60
|
power_grid_model/validation/utils.py,sha256=A5ciWb8fwM6r0uzMmgz5TPtmXhr-oJeRKrCtTO4j5TM,12784
|
|
61
61
|
power_grid_model.libs/libgcc_s-0cd532bd.so.1,sha256=yPk0-VjyKzucjnkP3mvC0vVaua6Ln17qZUJbICcXgtA,181737
|
|
62
62
|
power_grid_model.libs/libstdc++-5d72f927.so.6.0.33,sha256=fogxHsmB1_D6C-a_-uHh8Ei_6Qh52a8vLlicJRM3ehk,3562401
|
|
63
|
-
power_grid_model-1.12.
|
|
64
|
-
power_grid_model-1.12.
|
|
65
|
-
power_grid_model-1.12.
|
|
66
|
-
power_grid_model-1.12.
|
|
67
|
-
power_grid_model-1.12.
|
|
63
|
+
power_grid_model-1.12.80.dist-info/METADATA,sha256=j7n9Vn2AMG-vjtDZouYSU7lnnmegUFTKwZtkEjN7lxg,9137
|
|
64
|
+
power_grid_model-1.12.80.dist-info/WHEEL,sha256=w8hK4Nj0QksCj1t7RVHox2KJNlc_sbMjI4HZ38zmNu8,114
|
|
65
|
+
power_grid_model-1.12.80.dist-info/entry_points.txt,sha256=KgNx7mGcOVAVuwCBeP30AH5h_8UrKf0DQA9Cs5td69w,75
|
|
66
|
+
power_grid_model-1.12.80.dist-info/RECORD,,
|
|
67
|
+
power_grid_model-1.12.80.dist-info/licenses/LICENSE,sha256=7Pm2fWFFHHUG5lDHed1vl5CjzxObIXQglnYsEdtjo_k,14907
|
|
68
|
+
power_grid_model-1.12.80.dist-info/sboms/auditwheel.cdx.json,sha256=UtbF-1TuISx56Tki8fFTDi3VkGz2tQFUgZfifWO6FY0,1795
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bomFormat": "CycloneDX", "specVersion": "1.4", "version": 1, "metadata": {"component": {"type": "library", "bom-ref": "pkg:pypi/power_grid_model@1.12.80?file_name=power_grid_model-1.12.80-py3-none-musllinux_1_2_x86_64.whl", "name": "power_grid_model", "version": "1.12.80", "purl": "pkg:pypi/power_grid_model@1.12.80?file_name=power_grid_model-1.12.80-py3-none-musllinux_1_2_x86_64.whl"}, "tools": [{"name": "auditwheel", "version": "6.5.0"}]}, "components": [{"type": "library", "bom-ref": "pkg:pypi/power_grid_model@1.12.80?file_name=power_grid_model-1.12.80-py3-none-musllinux_1_2_x86_64.whl", "name": "power_grid_model", "version": "1.12.80", "purl": "pkg:pypi/power_grid_model@1.12.80?file_name=power_grid_model-1.12.80-py3-none-musllinux_1_2_x86_64.whl"}, {"type": "library", "bom-ref": "pkg:apk/alpine/libgcc@14.2.0-r6#933a623c9e323e83b1734e630a342f206999adc096732a3fea9896fa0181ea29", "name": "libgcc", "version": "14.2.0-r6", "purl": "pkg:apk/alpine/libgcc@14.2.0-r6"}, {"type": "library", "bom-ref": "pkg:apk/alpine/libstdc%2B%2B@14.2.0-r6#76f023cbc3d7b369d6008f354e88aa983d13e4bd8f06e4e49a01686039fe1509", "name": "libstdc++", "version": "14.2.0-r6", "purl": "pkg:apk/alpine/libstdc%2B%2B@14.2.0-r6"}], "dependencies": [{"ref": "pkg:pypi/power_grid_model@1.12.80?file_name=power_grid_model-1.12.80-py3-none-musllinux_1_2_x86_64.whl", "dependsOn": ["pkg:apk/alpine/libgcc@14.2.0-r6#933a623c9e323e83b1734e630a342f206999adc096732a3fea9896fa0181ea29", "pkg:apk/alpine/libstdc%2B%2B@14.2.0-r6#76f023cbc3d7b369d6008f354e88aa983d13e4bd8f06e4e49a01686039fe1509"]}, {"ref": "pkg:apk/alpine/libgcc@14.2.0-r6#933a623c9e323e83b1734e630a342f206999adc096732a3fea9896fa0181ea29"}, {"ref": "pkg:apk/alpine/libstdc%2B%2B@14.2.0-r6#76f023cbc3d7b369d6008f354e88aa983d13e4bd8f06e4e49a01686039fe1509"}]}
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|