Impacts#
- class impacthpc.src.core.Impacts(impact_per_criteria: dict[str, ReplicableValue])
Bases:
object
Methods Summary
from_config
(name, configEntry)Creates an Impact object from a configuration entry.
keys
()make_intermediate_result
(name[, ...])Call
impacthpc.src.core.ReplicableValue.make_intermediate_result()
on theimpacthpc.src.core.ReplicableValue
of this Impcats.sum
(values)values
()Methods Documentation
- static from_config(name: str, configEntry: dict[str, dict[str, Any]]) Impacts #
Creates an Impact object from a configuration entry. The configEntry should be a dictionary where keys are criteria names and values are dictionaries with ‘value’ and ‘source’ keys.
- make_intermediate_result(name: str, explainations: str | None = None, ontology: Ontology | None = None)#
Call
impacthpc.src.core.ReplicableValue.make_intermediate_result()
on theimpacthpc.src.core.ReplicableValue
of this Impcats.
- values() list[ReplicableValue] #
- __add__(other: Impacts | ReplicableValue | int) Impacts
- __mul__(other: Impacts | ReplicableValue | int) Impacts
- __sub__(other: Impacts | ReplicableValue | int) Impacts
- __truediv__(other: Impacts | ReplicableValue | int) Impacts
- static from_config(name: str, configEntry: dict[str, dict[str, Any]]) Impacts
Creates an Impact object from a configuration entry. The configEntry should be a dictionary where keys are criteria names and values are dictionaries with ‘value’ and ‘source’ keys.
- make_intermediate_result(name: str, explainations: str | None = None, ontology: Ontology | None = None)
Call
impacthpc.src.core.ReplicableValue.make_intermediate_result()
on theimpacthpc.src.core.ReplicableValue
of this Impcats.
- values() list[ReplicableValue]