power-grid-model-ds 1.1.2__py3-none-any.whl → 1.1.4__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.
@@ -16,7 +16,7 @@ def empty(dtype: type):
16
16
  return ""
17
17
  if np.issubdtype(dtype, np.dtype("bool")):
18
18
  return False
19
- if np.issubdtype(dtype, np.float64):
19
+ if np.issubdtype(dtype, np.floating):
20
20
  return np.nan
21
21
  try:
22
22
  return np.iinfo(dtype).min
@@ -0,0 +1,152 @@
1
+ Metadata-Version: 2.2
2
+ Name: power-grid-model-ds
3
+ Version: 1.1.4
4
+ Summary: Power Grid Model extension which provides a grid data structure for simulation and analysis
5
+ Author-email: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
6
+ License: MPL-2.0
7
+ Project-URL: Home-page, https://lfenergy.org/projects/power-grid-model/
8
+ Project-URL: GitHub, https://github.com/PowerGridModel/power-grid-model-ds
9
+ Project-URL: Documentation, https://power-grid-model-ds.readthedocs.io/en/stable/
10
+ Project-URL: Mailing-list, https://lists.lfenergy.org/g/powergridmodel
11
+ Project-URL: Discussion, https://github.com/orgs/PowerGridModel/discussions
12
+ Keywords: power grid model
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Operating System :: POSIX :: Linux
19
+ Classifier: Operating System :: MacOS
20
+ Classifier: Topic :: Scientific/Engineering :: Physics
21
+ Requires-Python: <3.14,>=3.11
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: power-grid-model>=1.7
25
+ Requires-Dist: rustworkx>=0.15.1
26
+ Requires-Dist: numpy>=1.21
27
+ Provides-Extra: pandas
28
+ Requires-Dist: pandas>=2.2.1; extra == "pandas"
29
+ Provides-Extra: dev
30
+ Requires-Dist: pylint>=3.1.0; extra == "dev"
31
+ Requires-Dist: pytest>=8.1.1; extra == "dev"
32
+ Requires-Dist: coverage>=7.4.4; extra == "dev"
33
+ Requires-Dist: black>=24.3.0; extra == "dev"
34
+ Requires-Dist: ruff>=0.3.5; extra == "dev"
35
+ Requires-Dist: isort>=5.13.2; extra == "dev"
36
+ Requires-Dist: mypy>=1.9.0; extra == "dev"
37
+ Requires-Dist: pre-commit>=4; extra == "dev"
38
+ Provides-Extra: doc
39
+ Requires-Dist: sphinx; extra == "doc"
40
+ Requires-Dist: myst-nb; extra == "doc"
41
+ Requires-Dist: sphinx_rtd_theme; extra == "doc"
42
+ Requires-Dist: readthedocs-sphinx-search; extra == "doc"
43
+ Requires-Dist: sphinx-hoverxref; extra == "doc"
44
+ Requires-Dist: numpydoc; extra == "doc"
45
+
46
+ <!--
47
+ SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
48
+
49
+ SPDX-License-Identifier: MPL-2.0
50
+ -->
51
+
52
+ [![PyPI version](https://badge.fury.io/py/power-grid-model-ds.svg?no-cache)](https://badge.fury.io/py/power-grid-model-ds)
53
+ [![License: MIT](https://img.shields.io/badge/License-MPL2.0-informational.svg)](https://github.com/PowerGridModel/power-grid-model-ds/blob/main/LICENSE)
54
+ [![Downloads](https://static.pepy.tech/badge/power-grid-model-ds)](https://pepy.tech/project/power-grid-model-ds)
55
+ [![Downloads](https://static.pepy.tech/badge/power-grid-model-ds/month)](https://pepy.tech/project/power-grid-model-ds)
56
+
57
+ [![Build and Test Python](https://github.com/PowerGridModel/power-grid-model-ds/actions/workflows/build-test-and-sonar.yml/badge.svg)](https://github.com/PowerGridModel/power-grid-model-ds/actions/workflows/build-test-and-sonar.yml)
58
+ [![Check Code Quality](https://github.com/PowerGridModel/power-grid-model-ds/actions/workflows/check-code-quality.yml/badge.svg)](https://github.com/PowerGridModel/power-grid-model-ds/actions/workflows/check-code-quality.yml)
59
+ [![REUSE Compliance Check](https://github.com/PowerGridModel/power-grid-model-ds/actions/workflows/reuse-compliance.yml/badge.svg)](https://github.com/PowerGridModel/power-grid-model-ds/actions/workflows/reuse-compliance.yml)
60
+ [![docs](https://readthedocs.org/projects/power-grid-model-ds/badge/)](https://power-grid-model-ds.readthedocs.io/en/stable/)
61
+
62
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=PowerGridModel_power-grid-model-ds&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=PowerGridModel_power-grid-model-ds)
63
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=PowerGridModel_power-grid-model-ds&metric=coverage)](https://sonarcloud.io/summary/new_code?id=PowerGridModel_power-grid-model-ds)
64
+ [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=PowerGridModel_power-grid-model-ds&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=PowerGridModel_power-grid-model-ds)
65
+ [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=PowerGridModel_power-grid-model-ds&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=PowerGridModel_power-grid-model-ds)
66
+ [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=PowerGridModel_power-grid-model-ds&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=PowerGridModel_power-grid-model-ds)
67
+ [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=PowerGridModel_power-grid-model-ds&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=PowerGridModel_power-grid-model-ds)
68
+
69
+ [![Nightly build](https://github.com/PowerGridModel/power-grid-model-ds/actions/workflows/nightly.yml/badge.svg)](https://github.com/PowerGridModel/power-grid-model-ds/actions/workflows/nightly.yml)
70
+
71
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14825565.svg)](https://zenodo.org/record/14825565)
72
+
73
+ [![](https://github.com/PowerGridModel/.github/blob/main/artwork/svg/color.svg)](#)
74
+
75
+ # Power Grid Model Data Science (DS)
76
+
77
+ The Power Grid Model DS project extends the capabilities of the `power-grid-model` calculation core with a modelling and simulation interface. This is aimed at building data science software applications related to or using the power-grid-model project. It defines a `Grid` dataclass which manages the consistency of the complete network.
78
+
79
+ Some highlighted features:
80
+
81
+ - Using a model definition that corresponds to the power-grid-model, through
82
+ which it is easy to do efficient grid calculations.
83
+ - The extended numpy model provides features which make development more
84
+ pleasant and easy.
85
+ - Using the graph representation of the network, graph algorithms in rustworkx
86
+ can be used to analyze the network.
87
+ - An interface to model network mutations which is useful in
88
+ simulation use-cases.
89
+
90
+ See the [power-grid-model-ds documentation](https://power-grid-model-ds.readthedocs.io/en/stable/) for more information.
91
+
92
+ ## Installation
93
+
94
+ ### Pip
95
+
96
+ ```
97
+ pip install power-grid-model-ds
98
+ ```
99
+
100
+ ## License
101
+
102
+ This project is licensed under the Mozilla Public License, version 2.0 - see [LICENSE](https://github.com/PowerGridModel/power-grid-model-ds/blob/main/LICENSE) for details.
103
+
104
+ ## Licenses third-party libraries
105
+
106
+ This project includes third-party libraries,
107
+ which are licensed under their own respective Open-Source licenses.
108
+ SPDX-License-Identifier headers are used to show which license is applicable.
109
+ The concerning license files can be found in the [LICENSES](https://github.com/PowerGridModel/power-grid-model-ds/tree/main/LICENSES) directory.
110
+
111
+ ## Contributing
112
+
113
+ Please read [CODE_OF_CONDUCT](https://github.com/PowerGridModel/.github/blob/main/CODE_OF_CONDUCT.md) and [CONTRIBUTING](https://github.com/PowerGridModel/.github/blob/main/CONTRIBUTING.md) for details on the process
114
+ for submitting pull requests to us.
115
+
116
+ ## Citations
117
+
118
+ If you are using Power Grid Model DS in your research work, please consider citing our library using the following references.
119
+
120
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14825565.svg)](https://zenodo.org/record/14825565)
121
+
122
+ ```bibtex
123
+ @software{Schouten_PowerGridModel_power-grid-model-ds,
124
+ author = {Schouten, Jaap and Baaijen, Thijs and Koppen, Vincent and van der Voort, Sven and {Contributors to the LF Energy project Power Grid Model}},
125
+ doi = {10.5281/zenodo.14825565},
126
+ license = {MPL-2.0},
127
+ title = {{PowerGridModel/power-grid-model-ds}},
128
+ url = {https://github.com/PowerGridModel/power-grid-model-ds}
129
+ }
130
+ @software{Xiang_PowerGridModel_power-grid-model,
131
+ author = {Xiang, Yu and Salemink, Peter and van Westering, Werner and Bharambe, Nitish and Govers, Martinus G.H. and van den Bogaard, Jonas and Stoeller, Bram and Wang, Zhen and Guo, Jerry Jinfeng and Figueroa Manrique, Santiago and Jagutis, Laurynas and Wang, Chenguang and van Raalte, Marc and {Contributors to the LF Energy project Power Grid Model}},
132
+ doi = {10.5281/zenodo.8054429},
133
+ license = {MPL-2.0},
134
+ title = {{PowerGridModel/power-grid-model}},
135
+ url = {https://github.com/PowerGridModel/power-grid-model}
136
+ }
137
+ @inproceedings{Xiang2023,
138
+ author = {Xiang, Yu and Salemink, Peter and Stoeller, Bram and Bharambe, Nitish and van Westering, Werner},
139
+ booktitle={27th International Conference on Electricity Distribution (CIRED 2023)},
140
+ title={Power grid model: a high-performance distribution grid calculation library},
141
+ year={2023},
142
+ volume={2023},
143
+ number={},
144
+ pages={1089-1093},
145
+ keywords={},
146
+ doi={10.1049/icp.2023.0633}
147
+ }
148
+ ```
149
+
150
+ ## Contact
151
+
152
+ Please read [SUPPORT](https://github.com/PowerGridModel/.github/blob/main/SUPPORT.md) for how to connect and get into contact with the Power Grid Model project.
@@ -19,7 +19,7 @@ power_grid_model_ds/_core/data_source/generator/arrays/node.py,sha256=r7hBuYFzaq
19
19
  power_grid_model_ds/_core/data_source/generator/arrays/source.py,sha256=rlrjDI73uI25975H5AuJSKs9_ZcfBUTFxoQ4PMg1lqc,1241
20
20
  power_grid_model_ds/_core/data_source/generator/arrays/transformer.py,sha256=o2MOhWfitED2YDACLrxSYbeyDf3Rr_4fF0rsW2nROD4,1526
21
21
  power_grid_model_ds/_core/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- power_grid_model_ds/_core/model/constants.py,sha256=x-vjey1SHg2yvR5EvzTC6w9iRffp3nlkye5eKUlZ2gM,745
22
+ power_grid_model_ds/_core/model/constants.py,sha256=pxkZ-a4J8RVu4ziw_A6usY81I2tt6sOY1xDBsv6Ta14,746
23
23
  power_grid_model_ds/_core/model/arrays/__init__.py,sha256=WMMIUW5RAkJ6E7tRtu8sImhxjnQDo7h5J2I9dhvfAcw,1013
24
24
  power_grid_model_ds/_core/model/arrays/pgm_arrays.py,sha256=Vmzj6BFVY3vZqfpiOZ0-KDNdi3EbkWv3cUHUx8D29jw,3318
25
25
  power_grid_model_ds/_core/model/arrays/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -57,8 +57,8 @@ power_grid_model_ds/_core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
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
59
59
  power_grid_model_ds/_core/utils/zip.py,sha256=9RtJYhjlgNZOtxr4iI-CpsjT1axw5kCCqprfTjaIsiI,2197
60
- power_grid_model_ds-1.1.2.dist-info/LICENSE,sha256=GpbnG1pNl-ORtSP6dmHeiZvwy36UFli6MEZy1XlmBqo,14906
61
- power_grid_model_ds-1.1.2.dist-info/METADATA,sha256=hSFx65sJZERR26_RHPairzhvUOJVE_Kf9NJ9fikP6mM,4269
62
- power_grid_model_ds-1.1.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
63
- power_grid_model_ds-1.1.2.dist-info/top_level.txt,sha256=nJa103Eqvm5TESYEKPFVImfLg_ugGOBznikrM-rZQZg,20
64
- power_grid_model_ds-1.1.2.dist-info/RECORD,,
60
+ power_grid_model_ds-1.1.4.dist-info/LICENSE,sha256=GpbnG1pNl-ORtSP6dmHeiZvwy36UFli6MEZy1XlmBqo,14906
61
+ power_grid_model_ds-1.1.4.dist-info/METADATA,sha256=XYSIcX5BJnpl0pG6N2vwSFRPJW5WO-QbXuw7MnBzc1E,8822
62
+ power_grid_model_ds-1.1.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
63
+ power_grid_model_ds-1.1.4.dist-info/top_level.txt,sha256=nJa103Eqvm5TESYEKPFVImfLg_ugGOBznikrM-rZQZg,20
64
+ power_grid_model_ds-1.1.4.dist-info/RECORD,,
@@ -1,97 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: power-grid-model-ds
3
- Version: 1.1.2
4
- Summary: Power Grid Model extension which provides a grid data structure for simulation and analysis
5
- Author-email: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
6
- License: MPL-2.0
7
- Project-URL: Home-page, https://lfenergy.org/projects/power-grid-model/
8
- Project-URL: GitHub, https://github.com/PowerGridModel/power-grid-model-ds
9
- Project-URL: Documentation, https://power-grid-model-ds.readthedocs.io/en/stable/
10
- Project-URL: Mailing-list, https://lists.lfenergy.org/g/powergridmodel
11
- Project-URL: Discussion, https://github.com/orgs/PowerGridModel/discussions
12
- Keywords: power grid model
13
- Classifier: Programming Language :: Python :: 3
14
- Classifier: Intended Audience :: Developers
15
- Classifier: Intended Audience :: Science/Research
16
- Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
17
- Classifier: Operating System :: Microsoft :: Windows
18
- Classifier: Operating System :: POSIX :: Linux
19
- Classifier: Operating System :: MacOS
20
- Classifier: Topic :: Scientific/Engineering :: Physics
21
- Requires-Python: <3.14,>=3.11
22
- Description-Content-Type: text/markdown
23
- License-File: LICENSE
24
- Requires-Dist: power-grid-model>=1.7
25
- Requires-Dist: rustworkx>=0.15.1
26
- Requires-Dist: numpy>=1.21
27
- Provides-Extra: pandas
28
- Requires-Dist: pandas>=2.2.1; extra == "pandas"
29
- Provides-Extra: dev
30
- Requires-Dist: pylint>=3.1.0; extra == "dev"
31
- Requires-Dist: pytest>=8.1.1; extra == "dev"
32
- Requires-Dist: coverage>=7.4.4; extra == "dev"
33
- Requires-Dist: black>=24.3.0; extra == "dev"
34
- Requires-Dist: ruff>=0.3.5; extra == "dev"
35
- Requires-Dist: isort>=5.13.2; extra == "dev"
36
- Requires-Dist: mypy>=1.9.0; extra == "dev"
37
- Requires-Dist: pre-commit>=4; extra == "dev"
38
- Provides-Extra: doc
39
- Requires-Dist: sphinx; extra == "doc"
40
- Requires-Dist: myst-nb; extra == "doc"
41
- Requires-Dist: sphinx_rtd_theme; extra == "doc"
42
- Requires-Dist: readthedocs-sphinx-search; extra == "doc"
43
- Requires-Dist: sphinx-hoverxref; extra == "doc"
44
- Requires-Dist: numpydoc; extra == "doc"
45
-
46
- <!--
47
- SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
48
-
49
- SPDX-License-Identifier: MPL-2.0
50
- -->
51
-
52
- [![](https://github.com/PowerGridModel/.github/blob/main/artwork/svg/color.svg)](#)
53
-
54
- # Power Grid Model Data Science (DS)
55
-
56
- The Power Grid Model DS project extends the capabilities of the `power-grid-model` calculation core with a modelling and simulation interface. This is aimed at building data science software applications related to or using the power-grid-model project. It defines a `Grid` dataclass which manages the consistency of the complete network.
57
-
58
- Some highlighted features:
59
-
60
- - Using a model definition that corresponds to the power-grid-model, through
61
- which it is easy to do efficient grid calculations.
62
- - The extended numpy model provides features which make development more
63
- pleasant and easy.
64
- - Using the graph representation of the network, graph algorithms in rustworkx
65
- can be used to analyze the network.
66
- - An interface to model network mutations which is useful in
67
- simulation use-cases.
68
-
69
- See the [power-grid-model-ds documentation](https://power-grid-model-ds.readthedocs.io/en/stable/) for more information.
70
-
71
- ## Installation
72
-
73
- ### Pip
74
-
75
- ```
76
- pip install power-grid-model-ds
77
- ```
78
- ## License
79
-
80
- This project is licensed under the Mozilla Public License, version 2.0 - see [LICENSE](https://github.com/PowerGridModel/power-grid-model-ds/blob/main/LICENSE) for details.
81
-
82
- ## Licenses third-party libraries
83
-
84
- This project includes third-party libraries,
85
- which are licensed under their own respective Open-Source licenses.
86
- SPDX-License-Identifier headers are used to show which license is applicable.
87
- The concerning license files can be found in the [LICENSES](https://github.com/PowerGridModel/power-grid-model-ds/tree/main/LICENSES) directory.
88
-
89
- ## Contributing
90
-
91
- Please read [CODE_OF_CONDUCT](https://github.com/PowerGridModel/.github/blob/main/CODE_OF_CONDUCT.md) and [CONTRIBUTING](https://github.com/PowerGridModel/.github/blob/main/CONTRIBUTING.md) for details on the process
92
- for submitting pull requests to us.
93
-
94
- ## Contact
95
-
96
- Please read [SUPPORT](https://github.com/PowerGridModel/.github/blob/main/SUPPORT.md) for how to connect and get into contact with the Power Grid Model project.
97
-