Skip to content

init

CheckTerms

Bases: object

A utility for reviewing the integrity of exchanges in an archive

Qdb

Bases: BasicArchive

A simple archive that just contains the 25-odd reference (non-LCIA) quantities of the ELCD database circa v3.2

new(ref='local.qdb') classmethod

Create a Quantity database containing the ILCD reference quantities. Specify a ref if desired.

Parameters:

Name Type Description Default
ref

['local.qdb']

'local.qdb'

new_flow(name, ref_quantity=None, **kwargs)

Parameters:

Name Type Description Default
name
required
ref_quantity

defaults to "Number of items"

None
kwargs
{}

Returns:

Type Description

archive_factory(ds_type)

Returns an archive class

Parameters:

Name Type Description Default
ds_type
required

Returns:

Type Description

archive_from_json(fname, factory=archive_factory, catalog=None, **archive_kwargs)

Parameters:

Name Type Description Default
fname

JSON filename

required
factory

function returning a class

archive_factory
catalog

[None] necessary to retrieve upstream archives, if specified

None

Returns:

Type Description

an ArchiveInterface

create_archive(source, ds_type, factory=archive_factory, **kwargs)

Create an archive from a source and type specification.

Parameters:

Name Type Description Default
source
required
ds_type
required
factory

override archive factory with fancier version

archive_factory
kwargs
{}

Returns:

Type Description