We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6ac6cb commit 64b72f3Copy full SHA for 64b72f3
1 file changed
OMPython/ModelicaSystem.py
@@ -395,19 +395,11 @@ def xmlparse(self):
395
scalar["changeable"] = sv.get('isValueChangeable')
396
scalar["aliasvariable"] = sv.get('aliasVariable')
397
ch = list(sv)
398
- start = None
399
- min = None
400
- max = None
401
- unit = None
402
for att in ch:
403
- start = att.get('start')
404
- min = att.get('min')
405
- max = att.get('max')
406
- unit = att.get('unit')
407
- scalar["start"] = start
408
- scalar["min"] = min
409
- scalar["max"] = max
410
- scalar["unit"] = unit
+ scalar["start"] = att.get('start')
+ scalar["min"] = att.get('min')
+ scalar["max"] = att.get('max')
+ scalar["unit"] = att.get('unit')
411
412
if scalar["variability"] == "parameter":
413
if scalar["name"] in self.overridevariables:
0 commit comments