Skip to main content

Earth Science PRoblems for the Evaluation of Strategies, Solvers and Optimizers

Project description

Espresso

PyPI version Documentation Status Slack

Introduction

Earth Science PRoblems for the Evaluation of Strategies, Solvers and Optimizers (Espresso) is a collection of clearly defined forward codes that simulate a wide range of geophysical processes. The goal of Espresso is to bring together people developing physical simulations with those who need them. Espresso's simple and consistent code structure enables users to access a wide range of different forward code and contributers to share their solutions with a wider audience. For more information, please visit our documentation (coming soon).

Installation

$ pip install cofi-espresso

Check Espresso documentation - installation page for details on dependencies and setting up with virtual environments.

Basic usage

Once installed, each test problem can be imported using the following command:

from cofi_espresso import <testproblem>

Replace <testproblem> with one of the following currently available problems:

  • gravity_density

Once a problem is imported, it's main functions can be called using the same structure for each problem. For instance:

from cofi_espresso import GravityDensity

grav = GravityDensity(example_number=1)
grav_model = grav.suggested_model()
grav_data = grav.data()
grav_synthetics = grav.forward(grav_model)
grav_jacobian = grav.jacobian(grav_model)
grav.plot_model(grav_model)
grav.plot_data(grav_data)

Other problem-specific parameters can be accessed through the problem instance. For instance:

print(grav.params.keys())
# dict_keys(['m', 'rec_coords', 'x_nodes', 'y_nodes', 'z_nodes', 'lmx', 'lmy', 'lmz', 'lrx', 'lry'])

Which additional values are set is highly example-specific and we suggest to consult the Espresso Documentation.

Contributing

Interested in contributing? Please check out our contributor's guide.

Licence

Espresso is a community driven project to create a large suite of forward simulations to enable researchers to get example data without the need to understand each individual problem in detail.

Licensing is done individually by each contributor. If a contributor wants to freely share their code example we recommend the MIT licence or a 2-clause BSD licence. To determine the licence of an existing Espresso problem, please consult the documentation section of that problem.

All the other core functions of Espresso written by InLab Espresso developer team are distributed under a 2-clause BSD licence. A copy of this licence is provided with distributions of the software.

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

cofi_espresso-0.0.1.dev1.tar.gz (31.5 kB view details)

Uploaded Source

File details

Details for the file cofi_espresso-0.0.1.dev1.tar.gz.

File metadata

  • Download URL: cofi_espresso-0.0.1.dev1.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for cofi_espresso-0.0.1.dev1.tar.gz
Algorithm Hash digest
SHA256 f71c27830433d7ff93e2ca95f95ad5de3cc3e2bd4712169fff467153980690a4
MD5 d61f6374182af78c25e6ad95ffa340da
BLAKE2b-256 cd192e74dae54693fca084fc4ba4ec9e5965663a42220bd779baa9e8c5285d0c

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