pas#

Functions to load and save Pastas models to and from JSON files.

This module provides the load and dump functions for reading and writing Pastas models using JSON format. It also includes helper functions for encoding and decoding Pandas-specific types.

Classes#

PastasEncoder

Enhanced encoder to deal with the pandas formats used throughout Pastas.

Functions#

load(fname) → dict

Load a Pastas model from a JSON file.

pastas_hook(obj)

Decode Pastas-specific types from JSON.

dump(fname, data) → None

Save a Pastas model to a JSON file.