|
7 | 7 | # Predefined enums of EUM item types. |
8 | 8 | # |
9 | 9 | # Must be updated with every new release, or if the EUM.xml is updated |
| 10 | +# Run buildUtil\eumXMLProcess.py to create the lists |
10 | 11 | class eumItem(IntEnum): |
11 | 12 | eumIItemUndefined = 999 |
12 | 13 | eumIWaterLevel = 100000 |
@@ -592,10 +593,18 @@ class eumItem(IntEnum): |
592 | 593 | eumIMassPerLengthPerTime = 110306 |
593 | 594 | eumINearBedLoadPerLength = 110307 |
594 | 595 | eumISubstancePerUnitArea = 110308 |
595 | | - eumIAccNearBedLoadPerLength = 110309 |
| 596 | + eumIAccNearBedLoadPerLength = 110309 |
596 | 597 | eumIThermalConductivity = 110310 |
597 | 598 | eumIDirectionalVariance = 110311 |
598 | 599 | eumISpecificDissipationRate = 110312 |
| 600 | + eumIAngularFrequency = 110313 |
| 601 | + eumIStemDiameter = 110314 |
| 602 | + eumIVegetationDensity = 110315 |
| 603 | + eumIElasticModulus = 110316 |
| 604 | + eumIBladeWidth = 110317 |
| 605 | + eumIBladeThickness = 110318 |
| 606 | + eumIPlantDensity = 110319 |
| 607 | + eumIThickness = 110320 |
599 | 608 |
|
600 | 609 | # Predefined enums of EUM units. |
601 | 610 | # |
@@ -768,6 +777,7 @@ class eumUnit(IntEnum): |
768 | 777 | eumUouncePerYardUS3 = 2219 |
769 | 778 | eumUouncePerSquareFeet = 2220 |
770 | 779 | eumUouncePerSquareFeetUS = 2221 |
| 780 | + eumUgramPerCubicCentimeter = 2222 |
771 | 781 | eumUKiloGramPerMeterPerSecond = 2300 |
772 | 782 | eumUPascalSecond = 2301 |
773 | 783 | eumUkilogramPerMeterPerDay = 2302 |
@@ -1054,6 +1064,7 @@ class eumUnit(IntEnum): |
1054 | 1064 | eumUmilliBar = 6108 |
1055 | 1065 | eumUmicroPascal = 6109 |
1056 | 1066 | eumUdeciBar = 6110 |
| 1067 | + eumUGigaPascal = 6111 |
1057 | 1068 | eumUdB_re_1muPa2second = 6150 |
1058 | 1069 | eumUdBperLambda = 6160 |
1059 | 1070 | eumUPSU = 6200 |
@@ -1122,6 +1133,7 @@ class eumUnit(IntEnum): |
1122 | 1133 | eumUPerAcre = 9301 |
1123 | 1134 | eumUPerHectar = 9302 |
1124 | 1135 | eumUperKm2 = 9303 |
| 1136 | + eumUPerSquareFeet = 9304 |
1125 | 1137 | eumUPerCubicMeter = 9350 |
1126 | 1138 | eumUCurrencyPerCubicMeter = 9351 |
1127 | 1139 | eumUCurrencyPerCubicFeet = 9352 |
@@ -1701,12 +1713,12 @@ def eumGetBaseUnit(unitKey: eumUnit) -> eumUnit: |
1701 | 1713 | #/ <see cref="eumUnit.eumUUnitUndefined"/> gives the first unit in the system. |
1702 | 1714 | #/ </summary> |
1703 | 1715 | @staticmethod |
1704 | | - def eumGetNextUnit(prevUnitKey: eumUnit) -> Tuple[bool, eumUnit, str]: |
| 1716 | + def eumGetNextUnit(prevUnitKey: int) -> Tuple[bool, int, str]: |
1705 | 1717 | unitKey = ctypes.c_int32(); |
1706 | 1718 | lpUnitDesc = ctypes.c_char_p(); |
1707 | 1719 | if (0 != eumDLL.Wrapper.eumGetNextUnit(prevUnitKey, ctypes.byref(unitKey), ctypes.byref(lpUnitDesc))): |
1708 | | - return True, eumUnit(unitKey.value), lpUnitDesc.value.decode("ascii"); |
1709 | | - return False, eumUnit.eumUUnitUndefined, ""; |
| 1720 | + return True, unitKey.value, lpUnitDesc.value.decode("ascii"); |
| 1721 | + return False, eumUnit.eumUUnitUndefined.value, ""; |
1710 | 1722 |
|
1711 | 1723 | #/ <summary> |
1712 | 1724 | #/ Get the next unit defined in the eum-system which is equivalent |
|
0 commit comments