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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zizou-0.1.5-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zizou-0.1.5.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for zizou-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ae43677dc5a871d2ccda1dbed6705c3b2e2dd10418092f4fcdc2cef3c10638cd
MD5 37ac5e8ebb11c5d9fa371158c5aa874b
BLAKE2b-256 ffec1e8cabf1b62dd24ee0ba79ec25a3d24fda500cae606d41fc09bb175709cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zizou-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 58.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for zizou-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ef75ca68804f9621f5f65a8af39835a2ffe34ad9dd5abdc9634510da46bf5f9a
MD5 33605d637af5f38b0fd723164c8e423d
BLAKE2b-256 155959da51c8eab37c1b2f7b84c2458c3b44e34bd2dd037b448b7f5e432ca43b

See more details on using hashes here.

Supported by

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