environmentaltools.common.as_float_bool

environmentaltools.common.as_float_bool(obj: dict)[source]

Convert string values in dictionary to appropriate types.

Performs type conversion on dictionary values: converts numeric strings to floats/integers and boolean strings (‘True’, ‘False’) to bool type.

Parameters:

obj (dict) – Dictionary with string values to convert.

Returns:

Dictionary with values converted to appropriate types (float, int, or bool).

Return type:

dict