aeromaps.models.impacts.life_cycle_assessment.life_cycle_assessment_custom¶
Custom model for Life Cycle Assessment (LCA) of air transportation systems
LifeCycleAssessmentCustom ¶
LifeCycleAssessmentCustom(name='life_cycle_assessment', configuration_file=None, split_by=None, *args, **kwargs)
Bases: AeroMAPSModel
Life Cycle Assessment (LCA) model to compute multiple environmental impacts beyond climate change.
This model requires a valid ecoinvent license stored in a private '.env' file (that you will not share /commit)
in the notebooks or project root folder, containing the following variables:
ECOINVENT_LOGIN=
This model uses the lca_modeller library to build a parametric LCA model from a user-provided configuration file, and the lca_algebraic library (a layer on top of brightway) to compute LCA results efficiently for multiple years. The life cycle inventory relies on the ecoinvent database, projected to future years using the premise library.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the model instance. |
'life_cycle_assessment'
|
configuration_file
|
str
|
Path to the LCA configuration file defining the model and LCIA methods. |
None
|
split_by
|
str
|
Axis to split impacts by (typically, "phase"). Should match an axis defined in the configuration file through the "attribute" field. |
None
|
Attributes:
| Name | Type | Description |
|---|---|---|
model |
Activity
|
The parametric LCA model representative of air transport, generated from the configuration file. |
methods |
list
|
List of LCIA methods to compute. |
axis |
str
|
Optional axis to get contributors to impacts (typically, "phase"). |
params_names |
list
|
List of LCA parameter names used in the model, generated automatically from the LCA model definition. |
xarray_lca |
DataArray
|
The full LCA results stored as an xarray DataArray after computation. |
lambdas |
list
|
List of symbolic expressions for LCIA impacts, precomputed for efficiency. |
Source code in aeromaps/models/impacts/life_cycle_assessment/life_cycle_assessment_custom.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
compute ¶
compute(input_data)
Compute LCA impacts for the given input parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_data
|
dict
|
Dictionary containing values for LCA parameters. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dictionary containing computed LCA impacts as pd.Series (one per impact category). |
Source code in aeromaps/models/impacts/life_cycle_assessment/life_cycle_assessment_custom.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | |