diplomat.utils.frame_store_api.non_max_int32

diplomat.utils.frame_store_api.non_max_int32(val: dtype('<u4')) Optional[int][source]

Casts an object to a non-max integer, being None if it is the maximum value.

Parameters

val – The value to cast…

Returns

An integer, or None if the value equals the max possible integer.