Skip to content

Commit bb51f16

Browse files
feat: get unit of scalars in quantitiesList (#220)
1 parent e5bfca1 commit bb51f16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

OMPython/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,13 +999,16 @@ def xmlparse(self):
999999
start = None
10001000
min = None
10011001
max = None
1002+
unit = None
10021003
for att in ch:
10031004
start = att.get('start')
10041005
min = att.get('min')
10051006
max = att.get('max')
1007+
unit = att.get('unit')
10061008
scalar["start"] =start
10071009
scalar["min"] = min
10081010
scalar["max"] = max
1011+
scalar["unit"] = unit
10091012

10101013
if(scalar["variability"]=="parameter"):
10111014
if scalar["name"] in self.overridevariables:

0 commit comments

Comments
 (0)