materia_epd.core namespace

Submodules

materia_epd.core.constants module

class materia_epd.core.constants.ATTR[source]

Bases: object

AMOUNT = 'Amount'
CLASS_ID = 'classId'
ID = 'id'
INTERNAL_ID = 'dataSetInternalID'
LANG = '{http://www.w3.org/XML/1998/namespace}lang'
LOCATION = 'location'
NAME = 'name'
PROPERTY = 'property'
REF_OBJECT_ID = 'refObjectId'
UNIT = 'Unit'
class materia_epd.core.constants.ICONS[source]

Bases: object

ERROR = '❌'
HOURGLASS = '⏳'
SUCCESS = '✅'
WARNING = '⚠️'
class materia_epd.core.constants.XP[source]

Bases: object

AMOUNT = './/epd:amount'
CLASS_LEVEL_2 = "common:class[@level='2']"
FLOW_PROPERTIES = './/flow:flowProperties'
FLOW_PROPERTY = './/flow:flowProperty'
HS_CLASSIFICATION = ".//common:classification[@name='HS Classification']"
LCIA_RESULT = './/proc:LCIAResult'
LOCATION = './/proc:locationOfOperationSupplyOrProduction'
MATML_DOC = './/mat:MatML_Doc'
MEAN_AMOUNT = 'proc:meanAmount'
MEAN_VALUE = 'flow:meanValue'
PROPERTY_DATA = './/mat:PropertyData'
PROPERTY_DETAILS = './/mat:PropertyDetails'
PROP_DATA = 'mat:Data'
PROP_NAME = 'mat:Name'
PROP_UNITS = 'mat:Units'
QUANT_REF = './/proc:quantitativeReference/proc:referenceToReferenceFlow'
REF_TO_FLOW = 'proc:referenceToFlowDataSet'
REF_TO_FLOW_PROP = 'flow:referenceToFlowPropertyDataSet'
REF_TO_LCIA_METHOD = 'proc:referenceToLCIAMethodDataSet'
REF_TO_REF_FLOW_PROP = './/flow:referenceToReferenceFlowProperty'
SHORT_DESC = 'common:shortDescription'
UUID = './/common:UUID'
static exchange_by_id(internal_id: str) str[source]

materia_epd.core.errors module

exception materia_epd.core.errors.NoMatchingEPDError(message='No matching EPDs found for the following filters:')[source]

Bases: Exception

Raised when no EPDs match the given filters after all fallbacks.

materia_epd.core.physics module

materia_epd.core.utils module

materia_epd.core.utils.copy_except_folders(src_dir, dest_dir, exclude_folders)[source]
materia_epd.core.utils.qn_uri(uri: str, name: str) str[source]
materia_epd.core.utils.sort_key(p: Path)[source]
materia_epd.core.utils.to_float(value, positive=False)[source]

Convert to float; if positive=True, return None for <= 0.