Skip to main content

pyCSEP: Collaboratory for the Study of Earthquake Predictability

CSEP Logo

Python Version Downloads Build Tests Build Docs Coverage Zenodo JOSS

Description:

The pyCSEP Toolkit helps earthquake forecast model developers evaluate their forecasts with the goal of understanding earthquake predictability.

pyCSEP should:

  1. Help modelers become familiar with formats, procedures, and evaluations used in CSEP Testing Centers.
  2. Provide vetted software for model developers to use in their research.
  3. Provide quantitative and visual tools to assess earthquake forecast quality.
  4. Promote open-science ideas by ensuring transparency and availability of scientific code and results.
  5. Curate benchmark models and data sets for modelers to conduct retrospective experiments of their forecasts.

Table of Contents:

  1. Software Documentation
  2. CSEP Website
  3. Installation
  4. Usage
  5. Contributing
  6. Change Log
  7. Credits
  8. License

Installation:

pyCSEP can be installed in several ways. It can be installed using conda or pip package managers or from the source code found in the pyCSEP github repo. Researchers interested in contributing to pyCSEP development should install pyCSEP from source code. pyCSEP depends on the following software packages. These which may be installed automatically, or manually, depending on the installation method used.

Please see the requirements file for a complete list of requirements. These are installed automatically when using the conda distribution.

Detailed pyCSEP installation instructions can be found in the online pyCSEP documentation.

Usage:

Once installed, pyCSEP methods can be invoked from python code by importing package csep. pyCSEP provides objects and utilities related to several key concepts:

  • Earthquake Catalogs
  • Earthquake Forecasts
  • Earthquake Forecast Evaluations
  • Regions

An simple example to download and plot an earthquake catalog from the USGS ComCat:

import csep
from csep.core import regions
from csep.utils import time_utils
start_time = time_utils.strptime_to_utc_datetime('2019-01-01 00:00:00.0')
end_time = time_utils.utc_now_datetime()
catalog = csep.query_comcat(start_time, end_time)
catalog.plot(show=True)

Please see pyCSEP Getting Started documentation for more examples and tutorials.

Software Support:

Software support for pyCSEP is provided by that Southern California Earthquake Center (SCEC) Research Computing Group. This group supports several research software distributions including UCVM. Users can report issues and feature requests using the pyCSEP github-based issue tracking link below. Developers will also respond to emails sent to the SCEC software contact listed below.

  1. pyCSEP Issues
  2. Email Contact: software [at] scec [dot] org

Contributing:

We welcome contributions to the pyCSEP Toolkit. If you would like to contribute to this package, including software, tests, and documentation, please visit the contribution guidelines for guidelines on how to contribute to pyCSEP development. pyCSEP contributors agree to abide by the code of conduct found in our Code of Conduct guidelines.

Credits:

Development of pyCSEP is a group effort. A list of developers that have contributed to the PyCSEP Toolkit are listed in the credits file in this repository.

License:

The pyCSEP software is distributed under the BSD 3-Clause open-source license. Please see the license file for more information.

Release files for pycsep 0.8.0

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

Source distribution (sdist)

Source distribution for pycsep 0.8.0
File Size Uploaded
pycsep-0.8.0.tar.gz 39.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycsep 0.8.0
File Interpreter ABI Platform
pycsep-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 59.7 MB

Release files / pycsep-0.8.0.tar.gz

Download URL pycsep-0.8.0.tar.gz
Size 39.0 MB
Tags Source
SHA-256 checksum
How to use checksums
a56405b3cb9408e33a3f8494fe182b44eb89bbc77bca4439c359540840042831
BLAKE2b-256 checksum
How to use checksums
80b0ab10bdfa61f81c8b6a06244bdbb28574fe82131f0db607e1d5157912bb9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pycsep-0.8.0-py3-none-any.whl

Download URL pycsep-0.8.0-py3-none-any.whl
Size 20.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8211484cf9f0aa9a8ca412fdb50292be2ba6d096e60269aaa776447f86839d6c
BLAKE2b-256 checksum
How to use checksums
c87272d1f3f7e94d92db433649f09d4333dcfd992ee63ea0cd9ec4b8975cf95a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7
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