Git Product home page Git Product logo

brightway-superstructure's Introduction

Brightway2 database superstructure

The code in this repository has been put together specifically to give users a method for merging multiple brightway2 sqlite-type databases together. The code also allows for the storage of differences between the databases in a file that allows for a quick overview as well as a way to add, remove and edit these values.

Building a superstructure

The Builder class in src/superstructure.py is used as a way to prepare and construct the 'superstructure'. The build_superstructure notebook contains an example of the flow used to put together the superstructure database and the related 'scenario' or 'difference' file.

An example scenario file is also present with a very well done explanation by bsteubing of each column and how to make or customize one without being dependent on the code to build it.

Requirements

The suggested requirements for using the notebook as intended are as follows:

brightway2 >=2.1.2
jupyter
numpy
pandas >=0.24.1
python >=3.7
xlrd

The code was written and used through packages installed with the conda tools. Setting up the required environment can be done like so:

conda create -n structure -c defaults -c conda-forge -c cmutel -c haasad "brightway2>=2.1.2" python=3.7 jupyter numpy "pandas>=0.24.1" xlrd

brightway-superstructure's People

Contributors

bsteubing avatar dgdekoning avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.