load (pmrf.load)

load(source)[source]

Load a ParamRF Model (or any Parax PyTree) from a file.

Delegates to Parax’s loading logic. If the provided path does not exist and lacks an extension, this function will automatically check if a file with the same name and a ‘.prf’ extension exists.

Parameters:

source (str, PathLike, or BinaryIO) – The path to the saved file or an open file-like object containing the data.

Returns:

The deserialized PyTree (e.g., pmrf.Model).

Return type:

Any