aeromaps.models.impacts.life_cycle_assessment.life_cycle_assessment_default¶
Default model for Life Cycle Assessment (LCA) of air transportation systems
LifeCycleAssessmentDefault ¶
LifeCycleAssessmentDefault(name='life_cycle_assessment_default', json_file=None, split_by=None, *args, **kwargs)
Bases: AeroMAPSModel
Model to load LCA pre-compiled expressions from a JSON file. Compared to the LifeCycleAssessmentCustom model, this model does not require the user to install LCA-specific packages and is disconnected from the ecoinvent database. It is therefore easier to use and deploy, but less flexible as the user cannot modify the LCA model structure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the model instance. |
'life_cycle_assessment_default'
|
json_file
|
str
|
Path to the JSON file containing the pre-compiled LCA model. |
None
|
split_by
|
str
|
Axis to split the results by (e.g., "phase"). If None, total results are provided. |
None
|
Attributes:
| Name | Type | Description |
|---|---|---|
model |
Model
|
The LCA model loaded from the JSON file. |
methods |
List[tuple]
|
List of impact assessment methods available in the model. |
axis_keys |
List[str] or None
|
List of keys for the specified axis, if applicable. |
params_names |
List[str]
|
List of parameter names required by the LCA model. |
xarray_lca |
DataArray
|
Xarray DataArray storing the LCA results after computation. |
Source code in aeromaps/models/impacts/life_cycle_assessment/life_cycle_assessment_default.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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 | |
compute ¶
compute(input_data)
Main compute method for the LCA model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_data
|
dict
|
Dictionary containing input parameter values. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
output_data |
dict
|
Dictionary containing LCA results as pd.Series for each impact category. |
Source code in aeromaps/models/impacts/life_cycle_assessment/life_cycle_assessment_default.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |