Skip to main content

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 .

Metadata

Release files for esi-utils-rupture 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for esi-utils-rupture 1.0.9
File Size Uploaded
esi_utils_rupture-1.0.9.tar.gz 569.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for esi-utils-rupture 1.0.9
File Interpreter ABI Platform
esi_utils_rupture-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 616.2 kB

Release files / esi_utils_rupture-1.0.9.tar.gz

Download URL esi_utils_rupture-1.0.9.tar.gz
Size 569.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bc50124e2e54569d2578c461b9dc50d19b4b6221debdce38848830928cee4b4c
BLAKE2b-256 checksum
How to use checksums
629b65d4b783470ebbf573dd55407247db96a7665fe24b6e3883a37a5f19ed1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / esi_utils_rupture-1.0.9-py3-none-any.whl

Download URL esi_utils_rupture-1.0.9-py3-none-any.whl
Size 46.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e157be8d3684016616bc31e274b0b5f684fa01e0641fbea6412e1f82eff0c07
BLAKE2b-256 checksum
How to use checksums
ef860f4614644ee6a4c4b44c03926568a61de4345a64dd2df5315cbcd246e4a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page