Skip to content
Python class for handling supply and use tables
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Python class for efficient handling of supply and use tables (SUTs)

Created on Mon Jun 30 17:21:28 2014

@author: stefan pauliuk and Guillaume Majeau-Bettez, NTNU Trondheim, Norway
with contributions from
Konstantin Stadler, NTNU, Trondheim, Norway
Chris Mutel, PSI, Villingen, CH

numpy >= 1.9
scipy >= 0.14

Documenation of all methods and functions:

Below, a quick installation guide and a link to the tutorial are provided:

a) Installation from the web repository:
This is the easiest way of installing pySUT. Github hosts an installation package for pySUT, which can be downloaded directly from the command line using pip:

pip install pySUT

b) Installation as package:
Pull package via git pull or download as .zip file and unpack. Choose a convenient location (Here: 'C:\MyPythonPackages'). Then open a console, change to the directory ../pySUT-master/, and install the package from the command line:

python install

This makes the package available to Python. At any other place in a system with the same python installation, pydsm is now ready to be imported simply by

import pysut

This setup also allows us to run the unit test:

import unittest

import pysut

import pysut.tests

unittest.main(pysut.tests, verbosity=2)

Or, to run a specific test

unittest.main(pydsm.tests.test_allocations_constructs, verbosity=2)

c) Manual installation, by modifying the python path
Pull package via git pull or download as .zip file and unpack. Choose a convenient location (Here: 'C:\MyPythonPackages\'). Then include in your code the following lines
> import sys


from pysut import SupplyUseTable

You can’t perform that action at this time.