We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b63a2b commit 1beeadaCopy full SHA for 1beeada
1 file changed
OMPython/ModelicaSystem.py
@@ -358,19 +358,11 @@ def xmlparse(self):
358
scalar["changeable"] = sv.get('isValueChangeable')
359
scalar["aliasvariable"] = sv.get('aliasVariable')
360
ch = list(sv)
361
- start = None
362
- min = None
363
- max = None
364
- unit = None
365
for att in ch:
366
- start = att.get('start')
367
- min = att.get('min')
368
- max = att.get('max')
369
- unit = att.get('unit')
370
- scalar["start"] = start
371
- scalar["min"] = min
372
- scalar["max"] = max
373
- scalar["unit"] = unit
+ scalar["start"] = att.get('start')
+ scalar["min"] = att.get('min')
+ scalar["max"] = att.get('max')
+ scalar["unit"] = att.get('unit')
374
375
if scalar["variability"] == "parameter":
376
if scalar["name"] in self.overridevariables:
0 commit comments