pymrio.load_all

pymrio.load_all(path, include_core=True, subfolders=None, path_in_arc=None)

Loads a full IO system with all extension in path

Parameters:
  • path (pathlib.Path or string) – Path or path with para file name for the data to load. This must either point to the directory containing the uncompressed data or the location of a compressed zip file with the data. In the later case and if there are several mrio’s in the zip file the parameter ‘path_in_arc’ need to be specifiec to further indicate the location of the data in the compressed file.
  • include_core (boolean, optional) – If False the load method does not include A, L and Z matrix. This significantly reduces the required memory if the purpose is only to analyse the results calculated beforehand.
  • subfolders (list of pathlib.Path or string, optional) – By default (subfolders=None), all subfolders in path containing a json parameter file (as defined in DEFAULT_FILE_NAMES[‘filepara’]: metadata.json) are parsed. If only a subset should be used, pass a list of names of subfolders. These can either be strings specifying direct subfolders of path, or absolute/relative path if the extensions are stored at a different location. Both modes can be mixed. If the data is read from a zip archive the path must be given as described below in ‘path_in_arc’, relative to the root defined in the paramter ‘path_in_arc’. Extensions in a different zip archive must be read separately by calling the function ‘load’ for this extension.
  • path_in_arc (string, optional) – Path to the data in the zip file (where the fileparameters file is located). path_in_arc must be given without leading dot and slash; thus to point to the data in the root of the compressed file pass ‘’, for data in e.g. the folder ‘emissions’ pass ‘emissions/’. Only used if parameter ‘path’ points to an compressed zip file. Can be None (default) if there is only one mrio database in the zip archive (thus only one file_parameter file as the systemtype entry ‘IOSystem’.