Closed psatke closed 4 months ago
This file ogs_3bhe_gw.zip produces the following error:
XMLSyntaxError: xmlSAX2Characters: huge text node, line 762, column 10003741
when the piece of code is executed (ogs6py version 0.370):
from ogs6py import ogs file = 'ogs_3bhe_gw.prj' model = ogs.OGS(PROJECT_FILE=file, INPUT_FILE=file)
I tried to reduce the project file to a minimum example, but smaller files did not reproduce the error. My current workaround looks like this:
from lxml import etree file = 'ogs_3bhe_gw.prj' parser = etree.XMLParser(huge_tree=True) tree = etree.parse(file, parser) root = tree.getroot()
Please consider to add the possibility to set huge_tree=True via the API.
huge_tree=True
Thanks for the hint. I'll take a look.
This file ogs_3bhe_gw.zip produces the following error:
XMLSyntaxError: xmlSAX2Characters: huge text node, line 762, column 10003741
when the piece of code is executed (ogs6py version 0.370):
I tried to reduce the project file to a minimum example, but smaller files did not reproduce the error. My current workaround looks like this:
Please consider to add the possibility to set
huge_tree=True
via the API.