Skip to content
kyang2014 edited this page May 24, 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.

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

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.

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.

Clone this wiki locally