Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.61 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.61 KB

pymrio

A python module for automating input output calculations and generating reports.

This is work in progress, so far only tested for the EXIOBASE 2.0 system (CREEA project). However, in principal pymrio can handle any symetric mrio table (e.g. WIOD, EXIOBASE 1.0).

Usage

A small test mrio is included in the package. To use it call

import pymrio
test_mrio = pymrio.load_test()

The test_mrio consists of a transaction matrix and two extension types.

Check the [documentation] (http://konstantinstadler.github.io/pymrio/index.html) and the tutorials for further information:

Tutorial 1: [Basic intro] (http://nbviewer.ipython.org/github/konstantinstadler/pymrio/blob/master/doc/notebooks/pymrio_basic_introduction.ipynb)

Tutorial 2: [EXIOBASE 2] (http://nbviewer.ipython.org/github/konstantinstadler/pymrio/blob/master/doc/notebooks/pymrio_exiobase_tutorial.ipynb)

Tutorial 3: [Use without parser] (http://nbviewer.ipython.org/github/konstantinstadler/pymrio/blob/master/doc/notebooks/pymrio_directly_assign_attributes.ipynb)

Installation

Up to now now pymrio doesn't have a installation routine. Just download the package from the source repository (download zip on right toolstrip), unzip and add the folder to your python path.

import sys
_pymrio_path = r'S:\pymrio-master'  
if not _pymrio_path in sys.path:
    sys.path.append(_pymrio_path)
del _pymrio_path

import pymrio

Dependencies

  • Python 3.0 or later
  • pandas 0.15 or later
  • numpy
  • scipy
  • matplotlib
  • docutils (only for generating reports in html format)
  • py.test (for running the unit tests)