Skip to content

Commit 9a87210

Browse files
committed
[ModelicaSystem] do NOT store data in the class workspace
1 parent 2f1f3b4 commit 9a87210

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

OMPython/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,9 +889,8 @@ def requestApi(self, apiName, entity=None, properties=None): # 2
889889

890890
def xmlparse(self):
891891
if (os.path.exists(self.xmlFile)):
892-
self.tree = ET.parse(self.xmlFile)
893-
self.root = self.tree.getroot()
894-
rootCQ = self.root
892+
tree = ET.parse(self.xmlFile)
893+
rootCQ = tree.getroot()
895894
for attr in rootCQ.iter('DefaultExperiment'):
896895
self.simulateOptions["startTime"] = attr.get('startTime')
897896
self.simulateOptions["stopTime"] = attr.get('stopTime')

0 commit comments

Comments
 (0)