pastas.io.pas.pastas_hook#

pastas.io.pas.pastas_hook(obj: dict)#

Decode Pastas-specific types from JSON.

This function is used as the object_hook parameter in json.load() to convert JSON data back to Python/Pandas types used by Pastas.

Parameters:

obj (dict) – Dictionary from the JSON file.

Returns:

Dictionary with Pastas types decoded.

Return type:

dict