You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Why do empty strings with integers get converted to zero? #203
AK_UCS4_to_int64, if given all empty field, returns an npy_int64 of 0; this cannot easily return an error code. Also: AK_UCS4_to_uint64 does the same thing.
AK_CPL_current_to_bool, similarly, treats empty or non "true" values as 0.
When auto-type detection is used, it is the logic in AK_TPS_Resolve that, if previous is TPS_INT and new is TPS_EMPTY, we return TPS_INT; this is the same for TPS_FLOAT and TPS_BOOL.
Activity
flexatone commentedon Feb 3, 2026
This happens for two reasons:
AK_UCS4_to_int64, if given all empty field, returns annpy_int64of 0; this cannot easily return an error code. Also:AK_UCS4_to_uint64does the same thing.AK_CPL_current_to_bool, similarly, treats empty or non "true" values as 0.AK_TPS_Resolvethat, if previous isTPS_INTand new isTPS_EMPTY, we returnTPS_INT; this is the same forTPS_FLOATandTPS_BOOL.flexatone commentedon Feb 5, 2026
This is the same for Boolean arrays, where the default is
False:flexatone commentedon Feb 6, 2026
possible Boolean parameter names, defaulting to True for now
implicit_empty_intimplicit_empty_bool