For documentation and tutorials, please see https://pennmem.github.io/ptsa_new/
This is the development branch for PTSA 2.0. It is subject to large changes and should not be considered stable.
Available on Linux, Mac, and Windows 64 bit:
conda install -c pennmem ptsa
To report a bug or a feature request please use https://github.com/pennmem/ptsa_new/issues.
Install dependencies:
conda install -y numpy scipy xarray pywavelets swig
You can also optionally install FFTW. If it is not found, PTSA ships with a copy of it and will automatically compile it. To install FFTW with conda on Linux or Mac:
conda install -y -c conda-forge fftw=3.3.4
Alternatively, it can be installed with the system package manager on Linux (Debian-based command shown below):
sudo apt-get install libfftw3-dev
or on Mac using homebrew:
brew install fftw
Install PTSA:
python setup.py install
Before we begin building conda PTSA packages we need to set the PYTHON_BUILD_NUMBER system variable. For example, if we are building PTSA conda package for Python 2.7 we set PYTHON_BUILD_NUMBER to be 2.7. On linux you do it via
export PYTHON_BUILD_VERSION=2.7
on Windows:
set PYTHON_BUILD_VERSION=2.7
Next, in the root conda environment, install conda-build
:
conda install conda-build
Update the version number in conda.recipe/meta.yaml
.
Build packages with:
conda build conda.recipe
To allow uploads you need to install anaconda-client:
conda install anaconda-client
After that installing anaconda-client
you need to to provide your anaconda.io login credentials:
anaconda login
At this point you will be ready to upload newly built conda PTSA packages. After the build is successfully completed you go to the directory where package tarballs have been generated and type:
anaconda upload --user pennmem ./ptsa-*.tar.bz2
Hint: conda packages will be most likely generated in <conda installation dir>/conda-bld/<architecture_folder>
where <architecture folder>
denotes name of the arget architecture for which conda package was build. e.g. on 64-bit Windows the architecture folder will be called win-64
(hence conda packages will be generated in <conda installation dir>/conda-bld/win-64