Skip to main content

USGS Earthquake Impact Utilities for Ruptures

Reason this release was yanked:

Inccorect version due to pyproject.toml error

Project description

esi-utils-rupture

Introduction

Utility package with some helper functions for representing ruptures and computing rupture distances used by USGS earthquake hazard products such as ShakeMap and gmprocess.

See tests directory for usage examples.

Installation

Isolating installations with virtual environments to prevent dependency conflicts is recommended. You can use the Python3 venv module or conda, which is shown below.

Create and activate the virtual environment, checking that the chosen Python version is compatible with package requirements

conda create --name rupture python=3.10
conda activate rupture

From PyPi

The easiest way to install the package is via PyPi. For users interested in a more hands on development environment, instructions for a source installation with optional additional dependencies for development and testing further down.

pip install esi-utils-rupture

From Source

First clone the repostory locally

git clone https://code.usgs.gov/ghsc/esi/esi-utils-rupture.git
cd esi-utils-rupture

Next, install the code with pip

pip install .

Note that this will install the minimum requirements to run the code. There are additional optional packages that can be installed that support running the unit tests (test), code development (dev), and building wheels (build). To install these, you need to add the relevant option in brackets:

pip install .[test,dev,build]

For developers, it is also convenient to install the code in "editable" mode by adding the -e option:

pip install -e .[test,dev,build]

Tests

If you are installing from soruce and included the optional test dependencies in the install step, then you can run the unit tests in the root directory of the repository:

pytest .

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

esi-utils-rupture-0.0.0.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

esi_utils_rupture-0.0.0-py3-none-any.whl (47.4 kB view details)

Uploaded Python 3

File details

Details for the file esi-utils-rupture-0.0.0.tar.gz.

File metadata

  • Download URL: esi-utils-rupture-0.0.0.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for esi-utils-rupture-0.0.0.tar.gz
Algorithm Hash digest
SHA256 01c50122ea8fc6f8c38466c145eda22cfb8572f05ee65f17ceb4f18df596a798
MD5 0d29c49fad01b443c31e804999eaaa23
BLAKE2b-256 4828769010a37a7d77797c51915c8b6fbf6e22b95c2ce6302d26d0387c2617f7

See more details on using hashes here.

File details

Details for the file esi_utils_rupture-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for esi_utils_rupture-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5f0e0d45d3fb97ae9c678b18d8ff955a1590df9f2917cb3dbc8f34f42c9bd88
MD5 0bebeb00a4fbcf4e5ae40291d00a3f9f
BLAKE2b-256 0695e4c1a4bdb25293d7d8fb9d4bc300be33c280db35db39fbf125cc942bab75

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