power-grid-model-io 1.2.64__py3-none-any.whl → 1.2.66__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/vision_excel_converter.py +11 -4
- power_grid_model_io/utils/auto_id.py +2 -1
- {power_grid_model_io-1.2.64.dist-info → power_grid_model_io-1.2.66.dist-info}/METADATA +1 -1
- {power_grid_model_io-1.2.64.dist-info → power_grid_model_io-1.2.66.dist-info}/RECORD +7 -7
- {power_grid_model_io-1.2.64.dist-info → power_grid_model_io-1.2.66.dist-info}/LICENSE +0 -0
- {power_grid_model_io-1.2.64.dist-info → power_grid_model_io-1.2.66.dist-info}/WHEEL +0 -0
- {power_grid_model_io-1.2.64.dist-info → power_grid_model_io-1.2.66.dist-info}/top_level.txt +0 -0
|
@@ -32,13 +32,20 @@ class VisionExcelConverter(TabularConverter):
|
|
|
32
32
|
Vision Excel Converter: Load data from a Vision Excel export file and use a mapping file to convert the data to PGM
|
|
33
33
|
"""
|
|
34
34
|
|
|
35
|
-
def __init__(
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
def __init__(
|
|
36
|
+
self,
|
|
37
|
+
source_file: Optional[Union[Path, str]] = None,
|
|
38
|
+
language: str = "en",
|
|
39
|
+
mapping_file: Optional[Path] = None,
|
|
40
|
+
):
|
|
41
|
+
_mapping_file = _mapping_file = (
|
|
42
|
+
mapping_file if mapping_file is not None else Path(str(DEFAULT_MAPPING_FILE).format(language=language))
|
|
43
|
+
)
|
|
44
|
+
if not _mapping_file.exists():
|
|
38
45
|
raise FileNotFoundError(f"No Vision Excel mapping available for language '{language}'")
|
|
39
46
|
self._id_reference: Optional[IdReferenceFields] = None
|
|
40
47
|
source = VisionExcelFileStore(file_path=Path(source_file)) if source_file else None
|
|
41
|
-
super().__init__(mapping_file=
|
|
48
|
+
super().__init__(mapping_file=_mapping_file, source=source)
|
|
42
49
|
|
|
43
50
|
def set_mapping(self, mapping: Mapping[str, Any]) -> None:
|
|
44
51
|
super().set_mapping(mapping)
|
|
@@ -10,7 +10,7 @@ power_grid_model_io/converters/base_converter.py,sha256=LNrDo1kUUuBkLMgZpGm0MW5r
|
|
|
10
10
|
power_grid_model_io/converters/pandapower_converter.py,sha256=THJzytVLQDSOQVOj5y9HR2Wlz1QolAr0DEzZzKhntWU,113868
|
|
11
11
|
power_grid_model_io/converters/pgm_json_converter.py,sha256=KKZEBLVW1hsS2YjOsUO6EBrXhvwPVl9VhkUNEw-3gWk,13066
|
|
12
12
|
power_grid_model_io/converters/tabular_converter.py,sha256=hMb0pmnlq83GJEfOqr3K7XXsSiA_SYyQKHW1i6F5FSY,30577
|
|
13
|
-
power_grid_model_io/converters/vision_excel_converter.py,sha256=
|
|
13
|
+
power_grid_model_io/converters/vision_excel_converter.py,sha256=nec6aH92VVU3izUJg8Vsmv_sE_M8sM9RmoYs1J8znjg,3801
|
|
14
14
|
power_grid_model_io/data_stores/__init__.py,sha256=qwbj1j-Aa_yRB-E3j35pEVtF3mgH8CVIXAnog5mOry0,138
|
|
15
15
|
power_grid_model_io/data_stores/base_data_store.py,sha256=XKdQY6Thrt_o7vtMXvTJFl1TCwBkSZVcImhbHXz23ls,1367
|
|
16
16
|
power_grid_model_io/data_stores/csv_dir_store.py,sha256=H8ICXZRLDvp9OkbjkfHnoh4y7uNSXNepHAW6W53VsIw,1877
|
|
@@ -30,15 +30,15 @@ power_grid_model_io/mappings/tabular_mapping.py,sha256=jcj7h95b3pEaqOxZD_GOAfJ4J
|
|
|
30
30
|
power_grid_model_io/mappings/unit_mapping.py,sha256=wiQ_4R3kQL4AiC10KSayq0lKwrIRFDyfKcBhSs1F-eA,2839
|
|
31
31
|
power_grid_model_io/mappings/value_mapping.py,sha256=PqWqPesUz1pKOK1eg5tgOKWy7c__jCi5BIsyHYSpHhY,1073
|
|
32
32
|
power_grid_model_io/utils/__init__.py,sha256=qwbj1j-Aa_yRB-E3j35pEVtF3mgH8CVIXAnog5mOry0,138
|
|
33
|
-
power_grid_model_io/utils/auto_id.py,sha256=
|
|
33
|
+
power_grid_model_io/utils/auto_id.py,sha256=H7F00_Lc5fIjxrb0O04esgT-LnpzhPgn_IBg3c-uGZU,4122
|
|
34
34
|
power_grid_model_io/utils/dict.py,sha256=CDZM8iMWpLqfzxiyZZnvIUdWihwuczJQKHpfEGFsf2s,1014
|
|
35
35
|
power_grid_model_io/utils/download.py,sha256=enEoj42ByC5j5rj_iZ1Y9we7t8Nmlwre0-9Njon-Tqg,9457
|
|
36
36
|
power_grid_model_io/utils/json.py,sha256=dQDRd2Vb8pfqLU2hTuWYv2cpSIBBbFhd0LOBP21YxJI,3327
|
|
37
37
|
power_grid_model_io/utils/modules.py,sha256=a4IdozSL-sOZcmIQON_aQS7-cpnCyt-3p7zs40wRFkU,928
|
|
38
38
|
power_grid_model_io/utils/parsing.py,sha256=XB1QSHnslIieFJBKFXZCtiydqpOqQBiX_CXDbItXgAQ,4522
|
|
39
39
|
power_grid_model_io/utils/zip.py,sha256=VXHX4xWPPZbhOlZUAbMDy3MgQFzK6_l7sRvGXihNUY4,3875
|
|
40
|
-
power_grid_model_io-1.2.
|
|
41
|
-
power_grid_model_io-1.2.
|
|
42
|
-
power_grid_model_io-1.2.
|
|
43
|
-
power_grid_model_io-1.2.
|
|
44
|
-
power_grid_model_io-1.2.
|
|
40
|
+
power_grid_model_io-1.2.66.dist-info/LICENSE,sha256=7Pm2fWFFHHUG5lDHed1vl5CjzxObIXQglnYsEdtjo_k,14907
|
|
41
|
+
power_grid_model_io-1.2.66.dist-info/METADATA,sha256=k8Tnux04IL_nYzvVsCowp1J1xbAvQH0-_odxIIQyfZw,8041
|
|
42
|
+
power_grid_model_io-1.2.66.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
43
|
+
power_grid_model_io-1.2.66.dist-info/top_level.txt,sha256=7sq9VveemMm2R0RgTBa4tH8y_xF4_1hxbufmX9OjCTo,20
|
|
44
|
+
power_grid_model_io-1.2.66.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|