Skip to content

Commit

Permalink
eum.py fix: When list of units in eumUnit is incomplete/not in sync w…
Browse files Browse the repository at this point in the history
…ith EUM.xml
  • Loading branch information
JesperGr committed Sep 11, 2024
1 parent b4d38df commit 967cb0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mikecore/eum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1713,12 +1713,12 @@ def eumGetBaseUnit(unitKey: eumUnit) -> eumUnit:
#/ <see cref="eumUnit.eumUUnitUndefined"/> gives the first unit in the system.
#/ </summary>
@staticmethod
def eumGetNextUnit(prevUnitKey: eumUnit) -> Tuple[bool, eumUnit, str]:
def eumGetNextUnit(prevUnitKey: int) -> Tuple[bool, int, str]:
unitKey = ctypes.c_int32();
lpUnitDesc = ctypes.c_char_p();
if (0 != eumDLL.Wrapper.eumGetNextUnit(prevUnitKey, ctypes.byref(unitKey), ctypes.byref(lpUnitDesc))):
return True, eumUnit(unitKey.value), lpUnitDesc.value.decode("ascii");
return False, eumUnit.eumUUnitUndefined, "";
return True, unitKey.value, lpUnitDesc.value.decode("ascii");
return False, eumUnit.eumUUnitUndefined.value, "";

#/ <summary>
#/ Get the next unit defined in the eum-system which is equivalent
Expand Down

0 comments on commit 967cb0f

Please sign in to comment.