RCAIDE.load
load#
Imports a Pickle or JSON file into a RCAIDE data structure.
- param filename:
Path to the file to be loaded, without extension for pickle files
- type filename:
str
- param pickle_format:
Flag indicating whether to load a pickle file (True) or JSON file (False) Default is False (JSON format)
- type pickle_format:
bool, optional
- returns:
data – RCAIDE data structure containing the loaded information
- rtype:
RCAIDE.Framework.Core.Data
Notes
This function supports two file formats:
JSON format (default): Loads a JSON file and converts it to a RCAIDE data structure using the read_RCAIDE_json_dict function.
Pickle format: Loads a binary pickle file directly into a Python object. The .pkl extension is automatically added to the filename.
JSON format is human-readable and more portable across different Python versions, while pickle format is more efficient for large data structures but less portable.
See also
- __init__(*args, **kwargs)#
Initialize self. See help(type(self)) for accurate signature.