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.10.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

zizou-0.0.10-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zizou-0.0.10.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for zizou-0.0.10.tar.gz
Algorithm Hash digest
SHA256 a06d02db276b6b74915834f4ca2f358f5a75bf573afcf2d5c93f72f99c1d6e18
MD5 e1b93a958297ea725cda3b2708c0663f
BLAKE2b-256 b1e3255ff67695cb4c86c0ed0cf31bf99c8168de0a213474dce1b223181dccd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zizou-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 56.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for zizou-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 58cbf3dc50d43c90a87f41a0ad4976622e2a406b85e4095555eb42b28d8ceaeb
MD5 49d6370b7c8d8e29271ec8b6a716e124
BLAKE2b-256 0103a1d202cd88493eef91044177997fa1ab495a0c9b77d2626f9bb204251e16

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