Skip to main content

USGS Earthquake Impact Utilities for Ruptures

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-1.0.8.tar.gz (569.5 kB view details)

Uploaded Source

Built Distribution

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

esi_utils_rupture-1.0.8-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file esi_utils_rupture-1.0.8.tar.gz.

File metadata

  • Download URL: esi_utils_rupture-1.0.8.tar.gz
  • Upload date:
  • Size: 569.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for esi_utils_rupture-1.0.8.tar.gz
Algorithm Hash digest
SHA256 c91818132574c83740c265c6cfb1e325f4e75f678a3973ebbd15434826e3e2c9
MD5 645c6ad9d11549979a64beba862606f3
BLAKE2b-256 f4e1d38bd7397d50e3f1f63c194b3ac89227efd1a7edb478bdf2a293652144b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for esi_utils_rupture-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 884ffa344d23cdb0ffeca7c6556e8a55eeea12a15c7c52d0ff9dbb33afad7e9c
MD5 121ac60fdd6b980c723bd6d6f8d6f75e
BLAKE2b-256 4a90881cc3d2f377f7d8d29582ee0d8af639e80bb90d2807fe1256bec66081c2

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