InputsMgmt
Warning
Due to a change in the Ecoinvent API the ecoinvent-interface package used to access Ecoinvent data no longer works. The solution for now is to manually download LCI data from https://ecoquery.ecoinvent.org/ and place it in the data/ecoinvent folder renamed in the structure "ecoinvent-[V]-[SM]-lci-[ID].xml", where [V] is the ecoinvent database version (e.g. 3.10), [SM] is the system model (e.g. cutoff), and [ID] is the ID number of the specific activity shown in the URL of each dataset. Note that the file extension must be changed from .spold to .xlm. The version and system model must match the version and system model specified in the ecoinvent_settings when initialising the InputsMgmt module.
View Docstring
Signature:
InputsMgmt(
demand: 'DemandAndConversions',
crops: 'CropProduction',
waste: 'WasteAndCircularity',
herds: pd.Series,
par: 'ParameterRetriever',
ecoinvent_settings: dict,
ecoinvent_compounds_dict: dict
)
Docstring:
Management module that handles the calculation of emissions in the supply
chain of inputs. Emissions are either manually specified or retrieved from
Ecoinvent.
Parameters
----------
demand : DemandAndConversions object
crops : CropProduction object
herds : (pandas.Series of) AnimalHerd object(s)
par : ParameterRetriever object
ecoinvent_settings : dict
Dict with :
Allowed settings are:
'version' : str, default '3.7.1'
'system_model' : str, default 'cutoff'
ecoinvent_compounds_dict : dict
Dict with :
Used to translate the names of the elementary flows
in Ecoinvent to the names used in CIBUSmod.
Only compounds specified as keys in this dict will
be retrieved from Ecoinvent.
File: CIBUSmod/mgmt_modules/inputs_mgmt.py