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

Uploaded Source

Built Distribution

zizou-0.0.8-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zizou-0.0.8.tar.gz
  • Upload date:
  • Size: 1.1 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.8.tar.gz
Algorithm Hash digest
SHA256 9b8eba82ec0111a2e435d5d1760cc5c93632ebb9863b5d4c795bdd1fa6a21e21
MD5 d8d3a95e9771bc5235930bdd10f490ce
BLAKE2b-256 8a52d5de397462a3917aa2ec129f8d9fef4beccf53b86c18332cd24052e95cce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zizou-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 56.0 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fedb18020c55e7182ca71f1387e42f99461eda994ed442f68e15a7372784aa6d
MD5 7d3d0603d487f49ec96a555330fd5062
BLAKE2b-256 57e8a94ec7164359ecd385fb2a47ffa93034ed401936485afc083fabc789b4c1

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