T-reX.VerifyDatabase

This module contains a function to verify a (T-reX) database within a given project in Brightway2. It performs a verification by calculating LCA scores for random activities within the specified database using selected methods.

Attributes

project_name

Functions

VerifyDatabase(project_name, database_name[, ...])

Verifies a database within a given project in Brightway2 by calculating LCA scores

Module Contents

T-reX.VerifyDatabase.VerifyDatabase(project_name, database_name, check_material=True, check_waste=True, log=True)[source]

Verifies a database within a given project in Brightway2 by calculating LCA scores for random activities using selected methods.

This function assesses the integrity and validity of a specified database within a Brightway2 project. It performs LCA calculations on random activities using Waste Footprint and Material Demand Footprint methods, and logs the results.

Parameters:
  • project_name (str) – The name of the Brightway2 project.

  • database_name (str) – The name of the database to be verified.

  • check_material (bool) – If True, checks for Material Demand Footprint methods.

  • check_waste (bool) – If True, checks for Waste Footprint methods.

  • log (bool) – If True, logs the results.

Returns:

Exit code (0 for success, 1 for failure).

T-reX.VerifyDatabase.project_name = 'T-reX-default'