Skip to content
kyang2014 edited this page Jun 3, 2019 · 16 revisions

Welcome to the pytaf wiki!

Installation

Anaconda

If you do not already use a Python Distribution, we recommend Anaconda which supports most versions of Microsoft Windows, OSX/MacOS, and a variety of Linux Distributions.

$conda install --yes --file requirements.txt
$pip install .

System Python

If your system has a Python but you don't have a super user privilege, we recommend virtualenv for installation. Be aware this approach may not work because of other packages installed at your system.

$virtualenv venv
$source venv/bin/activate
$pip install -r requirements.txt && pip install .

Build and test the package on the working directory

You can always build the package and then run your application on the current working directory. Since this package depends on other packages that your system may not install. We find it is easy for users to install conda at the user environment and run the following command to build the package. $python setup.py build_ext --inplace

Blue Waters

pytaf was tested with Blue Waters. Blue Waters has a python module and you need to activate it first.

$module load bwpy

Since you will not have super user privilege on Blue Waters, you can build and test the package on the current working directory using the following command.

$python setup.py build_ext --inplace

Blue Waters python provides virtualenv, too. See Blue Waters Python Guide for details.

Run with openMP

The package also supports openMP. We have tested at Linux and Bluewater and the performance indeed gets improved. If the openMP is available, you can build the package that can take advantage of openMP with the following: $python setup.py.omp build_ext --inplace

Google Colab

Add the following line to use pytaf on Google Colab.

!pip install git+https://github.com/TerraFusion/pytaf.git

See pytaf_example.ipynb for demo.