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

Uploaded Source

Built Distribution

zizou-0.0.4-py3-none-any.whl (57.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zizou-0.0.4.tar.gz
  • Upload date:
  • Size: 87.3 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.4.tar.gz
Algorithm Hash digest
SHA256 1f3047d1c512c437c2f93d763955ee8e4bd1db641543c970269bffad1d02d13c
MD5 b863fff8f650d85692ca1f6cbac3dbad
BLAKE2b-256 0d4375e3220663d871da51512c20aa16d2b8476adb0b89b27ce5cf2dd56fa5e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zizou-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 57.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a4a31d452d768ffdea3448c04079e08a8f4688da95363290e4f06a439d95c1d5
MD5 8d66d7befa029e2852ddb0caa88969fc
BLAKE2b-256 0e1313cc516fc98cf7a01963babc1b4ec0da983be072c31dabed29c14f8ce616

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