TNO Intern

Commit b4214402 authored by Hen Brett's avatar Hen Brett 🐔
Browse files

adding some information to the xml parser

parent 4af02acd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@ from pythermogis.thermogis_classes.jvm_start import start_jvm
from jpype import JClass

def instantiate_utc_properties_from_xml(xml_file: str | Path) -> JClass:
    """Provided the path to an xml scenario file, parse this file for the utc properties; beware, the xml parses does some validation checks, checking that files exist.
    Even if these parameters are not needed by the pyThermoGIS module, if these validation checks fail, the xml parser will fail."""
    start_jvm()
    xml_parser = JClass("thermogis.properties.parsers.UTCXmlParser")()
    tree = ET.parse(xml_file)