aeromaps.models.impacts.life_cycle_assessment.io.common¶
Credits: lca_algebraic-web-app from Raphael Jolivet (Mines ParisTech). https://git.sophia.minesparis.psl.eu/oie/lca_algebraic-web-app/
ParamType ¶
Bases: str, Enum
Parameter type enumeration for the LCA algebraic model.
FunctionalUnit ¶
FunctionalUnit(quantity, unit)
Functional unit with a quantity expression and a unit string.
Source code in aeromaps/models/impacts/life_cycle_assessment/io/common.py
33 34 35 | |
Lambda ¶
Lambda(expr, all_params)
This class represents a compiled (lambdified) expression together with the list of requirement parameters and the source expression
Source code in aeromaps/models/impacts/life_cycle_assessment/io/common.py
56 57 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 | |
Param ¶
Param(name, type, unit, default, values=None, min=None, max=None, description=None, label=None, group=None)
Parameter definition for the LCA algebraic model.
Source code in aeromaps/models/impacts/life_cycle_assessment/io/common.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | |
Impact ¶
Impact(name, unit)
Impact metadata with name and unit.
Source code in aeromaps/models/impacts/life_cycle_assessment/io/common.py
200 201 202 | |
Model ¶
Model(params, expressions, functional_units, impacts)
Container for parameters, expressions, functional units, and impacts.
:param params: List of all parameters :param expressions: Dict of Dict {axis => {method => Lambda}} :param functional_units: Dict of function unit name => formula :param impacts : Dict of impacts with their units
Source code in aeromaps/models/impacts/life_cycle_assessment/io/common.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | |
evaluate ¶
evaluate(impact, functional_unit=FUNCTIONAL_UNIT_KEY, axis=TOTAL_AXIS_KEY, **param_values)
:param axis: Axis to consider
:param impact: Impact to consider
:param functional_unit: Function unit
:param param_values: List of parameters
:return:
Source code in aeromaps/models/impacts/life_cycle_assessment/io/common.py
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | |
unexpand_param_names ¶
unexpand_param_names(all_params, expanded_param_names)
Build a dict of expended_param => param
Source code in aeromaps/models/impacts/life_cycle_assessment/io/common.py
189 190 191 192 193 194 | |