Skip to content

ilcd_flowables

find_tag(o, tag, ns=None)

Parameters:

Name Type Description Default
o

objectified element

required
tag
required

Returns:

Type Description

find_tags(o, tag, ns=None)

Parameters:

Name Type Description Default
o

objectified element

required
tag
required

Returns:

Type Description

ilcd_flow_generator(archive=ELCD, **kwargs)

This generates flows from the current reference ELCD archive.

Parameters:

Name Type Description Default
archive
ELCD
kwargs
{}

Returns:

Type Description

render_text_block(el, ns=None)

Created for EcoSpold2. Take all the children of an objectified element and render them as a text block. Implement variable substitution (!!!)

Parameters:

Name Type Description Default
el

Element with tags including 'text' and 'variable'

required
ns

[None] namespace

None

Returns:

Type Description

synonyms_from_ilcd_flow(flow, skip_syns=False)

ILCD flow files have long synonym blocks at the top. They also have a CAS number and a basename.

Skips synonym blocks for ILCD flows known to have bad synonyms: * "Crude Oil; 42.3 MJ/kg" is not a synonym for "Benzene, pure", etc. * "Carbon [resource, in ground]" is not a synonym for the variety of compounds that may be manufactured from it * "Wood; 14.7 MJ/kg" says synonyms removed but weren't.

Skips 'wood' from any list, which is abused badly in the ILCD synonyms list. Methanol and wood are not synonymous.

Parameters:

Name Type Description Default
flow
required
skip_syns

return name, uuid, and cas but skip synonyms

False

Returns:

Type Description

uuid (str), name (str), syns (set, includes name, excludes uuid)