You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error occurred when executing to import_result = cimpy.cim_import(xml_files, "cgmes_v2_4_15")
import_result = cimpy.cim_import(xml_files, "cgmes_v2_4_15")
File "D:\anaconda3\envs\neuralforecast\lib\site-packages\cimpy\cimimport.py", line 61, in cim_import
import_result, logger_grouped = _set_attributes(import_result, xml_files, namespace_rdf, base, logger_grouped)
File "D:\anaconda3\envs\neuralforecast\lib\site-packages\cimpy\cimimport.py", line 280, in _set_attributes
if uuid2[0] == "#": # reference
IndexError: string index out of range
The text was updated successfully, but these errors were encountered:
import logging
import cimpy
from pathlib import Path
logging.basicConfig(filename='importCIGREMV.log', level=logging.INFO, filemode='w')
example = Path('.').resolve()
sample_folder = example
sample_files = sample_folder.glob('*.xml')
xml_files = []
for file in sample_folder.glob('*.xml'):
xml_files.append(str(file.absolute()))
import_result = cimpy.cim_import(xml_files, "cgmes_v2_4_15")
An error occurred when executing to import_result = cimpy.cim_import(xml_files, "cgmes_v2_4_15")
import_result = cimpy.cim_import(xml_files, "cgmes_v2_4_15")
File "D:\anaconda3\envs\neuralforecast\lib\site-packages\cimpy\cimimport.py", line 61, in cim_import
import_result, logger_grouped = _set_attributes(import_result, xml_files, namespace_rdf, base, logger_grouped)
File "D:\anaconda3\envs\neuralforecast\lib\site-packages\cimpy\cimimport.py", line 280, in _set_attributes
if uuid2[0] == "#": # reference
IndexError: string index out of range
The text was updated successfully, but these errors were encountered: