power-grid-model 1.12.58__py3-none-win_amd64.whl → 1.12.59__py3-none-win_amd64.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.

Files changed (59) hide show
  1. power_grid_model/__init__.py +54 -54
  2. power_grid_model/_core/__init__.py +3 -3
  3. power_grid_model/_core/buffer_handling.py +493 -493
  4. power_grid_model/_core/data_handling.py +141 -141
  5. power_grid_model/_core/data_types.py +132 -132
  6. power_grid_model/_core/dataset_definitions.py +109 -109
  7. power_grid_model/_core/enum.py +226 -226
  8. power_grid_model/_core/error_handling.py +206 -206
  9. power_grid_model/_core/errors.py +130 -130
  10. power_grid_model/_core/index_integer.py +17 -17
  11. power_grid_model/_core/options.py +71 -71
  12. power_grid_model/_core/power_grid_core.py +563 -563
  13. power_grid_model/_core/power_grid_dataset.py +535 -535
  14. power_grid_model/_core/power_grid_meta.py +243 -243
  15. power_grid_model/_core/power_grid_model.py +686 -686
  16. power_grid_model/_core/power_grid_model_c/__init__.py +3 -3
  17. power_grid_model/_core/power_grid_model_c/bin/power_grid_model_c.dll +0 -0
  18. power_grid_model/_core/power_grid_model_c/get_pgm_dll_path.py +63 -63
  19. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/basics.h +255 -255
  20. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/buffer.h +108 -108
  21. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/dataset.h +316 -316
  22. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/dataset_definitions.h +1052 -1052
  23. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/handle.h +99 -99
  24. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/meta_data.h +189 -189
  25. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/model.h +125 -125
  26. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/options.h +142 -142
  27. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c/serialization.h +118 -118
  28. power_grid_model/_core/power_grid_model_c/include/power_grid_model_c.h +36 -36
  29. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/basics.hpp +65 -65
  30. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/buffer.hpp +61 -61
  31. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/dataset.hpp +220 -220
  32. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/handle.hpp +108 -108
  33. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/meta_data.hpp +84 -84
  34. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/model.hpp +63 -63
  35. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/options.hpp +52 -52
  36. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/serialization.hpp +124 -124
  37. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp/utils.hpp +81 -81
  38. power_grid_model/_core/power_grid_model_c/include/power_grid_model_cpp.hpp +19 -19
  39. power_grid_model/_core/power_grid_model_c/lib/cmake/power_grid_model/power_grid_modelConfigVersion.cmake +3 -3
  40. power_grid_model/_core/serialization.py +317 -317
  41. power_grid_model/_core/typing.py +20 -20
  42. power_grid_model/_core/utils.py +798 -798
  43. power_grid_model/data_types.py +321 -321
  44. power_grid_model/enum.py +27 -27
  45. power_grid_model/errors.py +37 -37
  46. power_grid_model/typing.py +43 -43
  47. power_grid_model/utils.py +473 -473
  48. power_grid_model/validation/__init__.py +25 -25
  49. power_grid_model/validation/_rules.py +1171 -1171
  50. power_grid_model/validation/_validation.py +1172 -1172
  51. power_grid_model/validation/assertions.py +93 -93
  52. power_grid_model/validation/errors.py +602 -602
  53. power_grid_model/validation/utils.py +313 -313
  54. {power_grid_model-1.12.58.dist-info → power_grid_model-1.12.59.dist-info}/METADATA +1 -1
  55. power_grid_model-1.12.59.dist-info/RECORD +65 -0
  56. power_grid_model-1.12.58.dist-info/RECORD +0 -65
  57. {power_grid_model-1.12.58.dist-info → power_grid_model-1.12.59.dist-info}/WHEEL +0 -0
  58. {power_grid_model-1.12.58.dist-info → power_grid_model-1.12.59.dist-info}/entry_points.txt +0 -0
  59. {power_grid_model-1.12.58.dist-info → power_grid_model-1.12.59.dist-info}/licenses/LICENSE +0 -0
power_grid_model/enum.py CHANGED
@@ -1,27 +1,27 @@
1
- # SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2
- #
3
- # SPDX-License-Identifier: MPL-2.0
4
-
5
- """
6
- Common enumerations used by the power-grid-model library.
7
-
8
- Note: these enumeration match the C++ arithmetic core, so don't change the values unless you change them in C++ as well
9
-
10
- """
11
-
12
- from power_grid_model._core.enum import ( # noqa: F401
13
- AngleMeasurementType,
14
- Branch3Side,
15
- BranchSide,
16
- CalculationMethod,
17
- CalculationType,
18
- ComponentAttributeFilterOptions,
19
- FaultPhase,
20
- FaultType,
21
- LoadGenType,
22
- MeasuredTerminalType,
23
- ShortCircuitVoltageScaling,
24
- TapChangingStrategy,
25
- WindingType,
26
- _ExperimentalFeatures,
27
- )
1
+ # SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2
+ #
3
+ # SPDX-License-Identifier: MPL-2.0
4
+
5
+ """
6
+ Common enumerations used by the power-grid-model library.
7
+
8
+ Note: these enumeration match the C++ arithmetic core, so don't change the values unless you change them in C++ as well
9
+
10
+ """
11
+
12
+ from power_grid_model._core.enum import ( # noqa: F401
13
+ AngleMeasurementType,
14
+ Branch3Side,
15
+ BranchSide,
16
+ CalculationMethod,
17
+ CalculationType,
18
+ ComponentAttributeFilterOptions,
19
+ FaultPhase,
20
+ FaultType,
21
+ LoadGenType,
22
+ MeasuredTerminalType,
23
+ ShortCircuitVoltageScaling,
24
+ TapChangingStrategy,
25
+ WindingType,
26
+ _ExperimentalFeatures,
27
+ )
@@ -1,37 +1,37 @@
1
- # SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2
- #
3
- # SPDX-License-Identifier: MPL-2.0
4
-
5
- """
6
- Error classes used by the power-grid-model library.
7
- """
8
-
9
- from power_grid_model._core.errors import ( # noqa: F401
10
- AutomaticTapCalculationError,
11
- AutomaticTapInputError,
12
- ConflictID,
13
- ConflictingAngleMeasurementType,
14
- ConflictVoltage,
15
- IDNotFound,
16
- IDWrongType,
17
- InvalidArguments,
18
- InvalidBranch,
19
- InvalidBranch3,
20
- InvalidCalculationMethod,
21
- InvalidID,
22
- InvalidMeasuredObject,
23
- InvalidRegulatedObject,
24
- InvalidShortCircuitPhaseOrType,
25
- InvalidTransformerClock,
26
- IterationDiverge,
27
- MaxIterationReached,
28
- MissingCaseForEnumError,
29
- NotObservableError,
30
- PowerGridBatchError,
31
- PowerGridDatasetError,
32
- PowerGridError,
33
- PowerGridNotImplementedError,
34
- PowerGridSerializationError,
35
- PowerGridUnreachableHitError,
36
- SparseMatrixError,
37
- )
1
+ # SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2
+ #
3
+ # SPDX-License-Identifier: MPL-2.0
4
+
5
+ """
6
+ Error classes used by the power-grid-model library.
7
+ """
8
+
9
+ from power_grid_model._core.errors import ( # noqa: F401
10
+ AutomaticTapCalculationError,
11
+ AutomaticTapInputError,
12
+ ConflictID,
13
+ ConflictingAngleMeasurementType,
14
+ ConflictVoltage,
15
+ IDNotFound,
16
+ IDWrongType,
17
+ InvalidArguments,
18
+ InvalidBranch,
19
+ InvalidBranch3,
20
+ InvalidCalculationMethod,
21
+ InvalidID,
22
+ InvalidMeasuredObject,
23
+ InvalidRegulatedObject,
24
+ InvalidShortCircuitPhaseOrType,
25
+ InvalidTransformerClock,
26
+ IterationDiverge,
27
+ MaxIterationReached,
28
+ MissingCaseForEnumError,
29
+ NotObservableError,
30
+ PowerGridBatchError,
31
+ PowerGridDatasetError,
32
+ PowerGridError,
33
+ PowerGridNotImplementedError,
34
+ PowerGridSerializationError,
35
+ PowerGridUnreachableHitError,
36
+ SparseMatrixError,
37
+ )
@@ -1,43 +1,43 @@
1
- # SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2
- #
3
- # SPDX-License-Identifier: MPL-2.0
4
-
5
- """
6
- Type hints for the power-grid-model library.
7
-
8
- This includes all miscellaneous type hints not under dataset or categories.
9
- """
10
-
11
- from power_grid_model._core.dataset_definitions import ( # noqa: F401
12
- ComponentType,
13
- ComponentTypeVar,
14
- DatasetType,
15
- DatasetTypeVar,
16
- )
17
- from power_grid_model._core.power_grid_meta import ( # noqa: F401
18
- ComponentMetaData,
19
- DatasetMetaData,
20
- PowerGridMetaData,
21
- )
22
- from power_grid_model._core.typing import (
23
- ComponentAttributeMapping as _ComponentAttributeMapping,
24
- )
25
- from power_grid_model.enum import ComponentAttributeFilterOptions # noqa: F401
26
-
27
- ComponentAttributeMapping = _ComponentAttributeMapping
28
- """
29
- Type hint for mapping component attributes.
30
-
31
- `ComponentAttributeMapping` can be one of the following:
32
-
33
- - A set of :class:`ComponentType` or `str`
34
-
35
- - A list of :class:`ComponentType` or `str`
36
-
37
- - A :class:`ComponentAttributeFilterOptions <power_grid_model.enum.ComponentAttributeFilterOptions>` value
38
-
39
- - `None`
40
-
41
- - A dictionary mapping :class:`ComponentType` to a set, list, `None` or
42
- :class:`ComponentAttributeFilterOptions <power_grid_model.enum.ComponentAttributeFilterOptions>`
43
- """
1
+ # SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2
+ #
3
+ # SPDX-License-Identifier: MPL-2.0
4
+
5
+ """
6
+ Type hints for the power-grid-model library.
7
+
8
+ This includes all miscellaneous type hints not under dataset or categories.
9
+ """
10
+
11
+ from power_grid_model._core.dataset_definitions import ( # noqa: F401
12
+ ComponentType,
13
+ ComponentTypeVar,
14
+ DatasetType,
15
+ DatasetTypeVar,
16
+ )
17
+ from power_grid_model._core.power_grid_meta import ( # noqa: F401
18
+ ComponentMetaData,
19
+ DatasetMetaData,
20
+ PowerGridMetaData,
21
+ )
22
+ from power_grid_model._core.typing import (
23
+ ComponentAttributeMapping as _ComponentAttributeMapping,
24
+ )
25
+ from power_grid_model.enum import ComponentAttributeFilterOptions # noqa: F401
26
+
27
+ ComponentAttributeMapping = _ComponentAttributeMapping
28
+ """
29
+ Type hint for mapping component attributes.
30
+
31
+ `ComponentAttributeMapping` can be one of the following:
32
+
33
+ - A set of :class:`ComponentType` or `str`
34
+
35
+ - A list of :class:`ComponentType` or `str`
36
+
37
+ - A :class:`ComponentAttributeFilterOptions <power_grid_model.enum.ComponentAttributeFilterOptions>` value
38
+
39
+ - `None`
40
+
41
+ - A dictionary mapping :class:`ComponentType` to a set, list, `None` or
42
+ :class:`ComponentAttributeFilterOptions <power_grid_model.enum.ComponentAttributeFilterOptions>`
43
+ """