environmentaltools.common.keys_as_int

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

Convert the keys at reading json file into a dictionary of integers.

Parameters:

obj (dict) – Input dictionary.

Returns:

Dictionary with integer keys where possible, original keys otherwise.

Return type:

dict