Skip to main content

Python package to detect anomalies in geoscience time series data

Project description

Zizou: time-series classification tools for Geoscience

Zizou is a package to provide common tools for time-series classification in Geoscience. For example, it allows you to download seismic data from an S3 bucket or an FDSN server, compute spectrograms, and then use an Autoencoder to detect anomalies in the spectrograms.

Requirements

  • xarray
  • boto3
  • pandas
  • numpy
  • scipy
  • obspy
  • tqdm
  • xarray
  • pyyaml
  • tonik

Using the machine learning modules requires the following additional packages:

  • scikit-learn
  • pytorch

Installation

To only compute features run:

pip install -U zizou

To also use the machine learning modules run:

pip install -U "zizou[ML]"

Installation from source

Setup conda environment

cd zizou 
conda env create -f environment.yml

Install package in new environment

conda activate zizou 
cd zizou 
pip install -e .

Run tests

To run only the quick tests:

cd zizou 
pytest

To run the whole test suite:

cd zizou 
pytest --runslow

Setup Jupyter notebook kernel:

conda activate zizou 
python -m ipykernel install --user --name zizou 
kernda -o -y /path/to/jupyter/kernels/zizou/kernel.json

To find the path of your kernel.json file you can run:

jupyter --paths

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zizou-0.0.3.tar.gz (87.4 MB view details)

Uploaded Source

Built Distribution

zizou-0.0.3-py3-none-any.whl (55.5 kB view details)

Uploaded Python 3

File details

Details for the file zizou-0.0.3.tar.gz.

File metadata

  • Download URL: zizou-0.0.3.tar.gz
  • Upload date:
  • Size: 87.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 PyPy/7.3.5

File hashes

Hashes for zizou-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2ae28efcf1d95ff6c8002ee64b6a045e867b23fb75f019a212e269c44b9b6053
MD5 e79fad650f014acd033c2923351fe10d
BLAKE2b-256 5cf2c5b4288ba2b718a47d7b56d2c57232a1ec6a175816b13b6c61e6f46df47e

See more details on using hashes here.

File details

Details for the file zizou-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: zizou-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 55.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 PyPy/7.3.5

File hashes

Hashes for zizou-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8008dcc53cfad555cec2fc334128fb67384bea9562f3a7bebd72b6550bca2295
MD5 745793f88c666a495545a54b9fee6c7b
BLAKE2b-256 3dbe8cf0c1d4c29aebcf533aeaaa2ae10432885578f3e337acce086a0383d717

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page