pterasoftware.load()¶
- pterasoftware._serialization.load(path: str | Path, max_size: int | None = None) object¶
Loads a Ptera Software object from a JSON file.
If the path ends with “.json.gz”, the input is gzip decompressed automatically.
- Parameters:
path – The file path to load from.
max_size – The maximum decompressed size in bytes for gzip files. If None, the default of 4 GB is used. Set this to a larger value if loading very large simulation results. Only applies to “.json.gz” files.
- Returns:
The deserialized Ptera Software object.