Skip to content

ctw/ptsa_new

 
 

Repository files navigation

PTSA

image

For documentation and tutorials, please see https://pennmem.github.io/ptsa_new/

Warning

This is the development branch for PTSA 2.0. It is subject to large changes and should not be considered stable.

Install via conda

Available on Linux, Mac, and Windows 64 bit:

conda install -c pennmem ptsa

Report bug or feature request

To report a bug or a feature request please use https://github.com/pennmem/ptsa_new/issues.

Build from source

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

Building conda packages

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

About

PTSA - Python Time Series Analysis

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 70.3%
  • C 26.4%
  • C++ 3.2%
  • Other 0.1%