Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brightway-lca/bw_ecoinvent_metadata

Base ecoinvent flows, methods, and characterization factors
https://github.com/brightway-lca/bw_ecoinvent_metadata

bw3 ecoinvent life-cycle-assessment python

Last synced: about 2 months ago
JSON representation

Base ecoinvent flows, methods, and characterization factors

Awesome Lists containing this project

README

        

# Brightway ecoinvent metadata

This package provides metadata based on the `ecoinvent database `__ for life cycle assessment for use in the Brightway framework.

Uses ``bw_projects`` and ``bw_default_backend``.

## Installation

Install via ``pip`` or ``conda`` (``conda install -c cmutel bw_ecoinvent_metadata``).

## Usage

After first creating a new project:

from bw_ecoinvent_metadata import add_ecoinvent_metadata
add_ecoinvent_metadata()

## Development

Check out the ``dev`` branch to see the source data files.

A complete source clone require `git large file storage `__.

To regenerate the metadata database, run the following in a new project:

from bw_ecoinvent_metadata import EcoinventMetadataImporter
import bw_default_backend as backend
from bw_projects import projects

# Change as desired
temp_project = "__ecoinvent_metadata_temp__"
projects.create_project(temp_project)
version = "3.6" # Or whatever
ei = EcoinventMetadataImporter(version=version)
ei.apply_strategies()
backend.create(ei.data)