power-grid-model-io 1.3.2__py3-none-any.whl → 1.3.5__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.
Potentially problematic release.
This version of power-grid-model-io might be problematic. Click here for more details.
- power_grid_model_io/converters/tabular_converter.py +3 -0
- {power_grid_model_io-1.3.2.dist-info → power_grid_model_io-1.3.5.dist-info}/METADATA +1 -1
- {power_grid_model_io-1.3.2.dist-info → power_grid_model_io-1.3.5.dist-info}/RECORD +6 -6
- {power_grid_model_io-1.3.2.dist-info → power_grid_model_io-1.3.5.dist-info}/WHEEL +0 -0
- {power_grid_model_io-1.3.2.dist-info → power_grid_model_io-1.3.5.dist-info}/licenses/LICENSE +0 -0
- {power_grid_model_io-1.3.2.dist-info → power_grid_model_io-1.3.5.dist-info}/top_level.txt +0 -0
|
@@ -265,6 +265,9 @@ class TabularConverter(BaseConverter[TabularData]):
|
|
|
265
265
|
"""
|
|
266
266
|
# To avoid mistakes, the attributes in the mapping should exist. There is one extra attribute called
|
|
267
267
|
# 'extra' in which extra information can be captured.
|
|
268
|
+
if pgm_data.dtype.names is None:
|
|
269
|
+
raise ValueError(f"pgm_data for '{component}s' has no attributes defined. (dtype.names is None)")
|
|
270
|
+
|
|
268
271
|
if attr not in pgm_data.dtype.names and attr not in ["extra", "filters"]:
|
|
269
272
|
attrs = ", ".join(pgm_data.dtype.names)
|
|
270
273
|
raise KeyError(f"Could not find attribute '{attr}' for '{component}s'. (choose from: {attrs})")
|
|
@@ -12,7 +12,7 @@ power_grid_model_io/converters/__init__.py,sha256=kmbjFW6kVr30fmHb6mAoD7DQAqmbrs
|
|
|
12
12
|
power_grid_model_io/converters/base_converter.py,sha256=TICEXyG7PtimAUvhAmpSoZUqwa0shiDdwbWpiM2Ur7o,6048
|
|
13
13
|
power_grid_model_io/converters/pandapower_converter.py,sha256=RSF7aW39FlC_lki3OVpnO-odDWLpAx-btzFDBY2LP6M,115801
|
|
14
14
|
power_grid_model_io/converters/pgm_json_converter.py,sha256=agIJnPXJIQA2Ua25-UKRLxAEOonirBdBIwZi4Pqxz9o,13856
|
|
15
|
-
power_grid_model_io/converters/tabular_converter.py,sha256=
|
|
15
|
+
power_grid_model_io/converters/tabular_converter.py,sha256=VqC8efgfum4GcHet_co21pfTn2HIipuDN22Qoq4Gs3s,35288
|
|
16
16
|
power_grid_model_io/converters/vision_excel_converter.py,sha256=ahAhynkHp_rchDIS0xEYRj4MmcJtc5YPcQTItNXa7tI,4185
|
|
17
17
|
power_grid_model_io/data_stores/__init__.py,sha256=qwbj1j-Aa_yRB-E3j35pEVtF3mgH8CVIXAnog5mOry0,138
|
|
18
18
|
power_grid_model_io/data_stores/base_data_store.py,sha256=DJfLtRwvx_tXKnpjtBdfbMqPjWc324Eo5WeKTXjWXqc,1706
|
|
@@ -43,8 +43,8 @@ power_grid_model_io/utils/modules.py,sha256=a4IdozSL-sOZcmIQON_aQS7-cpnCyt-3p7zs
|
|
|
43
43
|
power_grid_model_io/utils/parsing.py,sha256=cw6d3S89BvB8dncN0SeFHDhFG7ZlDNx9iGYWjZk5fVU,4684
|
|
44
44
|
power_grid_model_io/utils/uuid_excel_cvtr.py,sha256=xYAYevGDuBd-TcgqcEMJJsISg3yv3uO_9mcUd7oj1qQ,7600
|
|
45
45
|
power_grid_model_io/utils/zip.py,sha256=VXHX4xWPPZbhOlZUAbMDy3MgQFzK6_l7sRvGXihNUY4,3875
|
|
46
|
-
power_grid_model_io-1.3.
|
|
47
|
-
power_grid_model_io-1.3.
|
|
48
|
-
power_grid_model_io-1.3.
|
|
49
|
-
power_grid_model_io-1.3.
|
|
50
|
-
power_grid_model_io-1.3.
|
|
46
|
+
power_grid_model_io-1.3.5.dist-info/licenses/LICENSE,sha256=7Pm2fWFFHHUG5lDHed1vl5CjzxObIXQglnYsEdtjo_k,14907
|
|
47
|
+
power_grid_model_io-1.3.5.dist-info/METADATA,sha256=vMNxxD_BEWIUTMqMDiOHKTbNksgBAk5DP-E0OrKbgUw,8159
|
|
48
|
+
power_grid_model_io-1.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
49
|
+
power_grid_model_io-1.3.5.dist-info/top_level.txt,sha256=7sq9VveemMm2R0RgTBa4tH8y_xF4_1hxbufmX9OjCTo,20
|
|
50
|
+
power_grid_model_io-1.3.5.dist-info/RECORD,,
|
|
File without changes
|
{power_grid_model_io-1.3.2.dist-info → power_grid_model_io-1.3.5.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|