load (pmrf.load)
- pmrf.load(source: str | PathLike | BinaryIO) Any
(experimental) Load a ParamRF Model (or any Parax PyTree) from a file.
Note that this function is experimental, and may break between version releases.
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, os.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