Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Doc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

pySUT

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

Dependencies:
numpy >= 1.9
scipy >= 0.14


Tutorial:
http://nbviewer.ipython.org/github/stefanpauliuk/pySUT/blob/master/Doc/pySUT_Documentation.ipynb
Documenation of all methods and functions:
http://htmlpreview.github.com/?https://github.com/stefanpauliuk/pySUT/blob/master/Doc/pysut.html

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 setup.py 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

sys.path.append('C:\MyPythonPackages\pySUT-master\pydsm\')

from pysut import SupplyUseTable

About

Python class for handling supply and use tables

Resources

License

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages