Skip to main content

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

Project description

Espresso

PyPI version build Documentation Status Slack

Introduction

Earth Science PRoblems for the Evaluation of Strategies, Solvers and Optimizers (Espresso) is a collection of datasets, and associated simulation codes, spanning a wide range of geoscience problems. Together they form a suite of real-world test problems that can be used to support the development, evaluation and benchmarking of a wide range of tools and algorithms for inference, inversion and optimisation. All problems are designed to share a common interface, so that changing from one test problem to another requires changing one line of code.

The Espresso project is a community effort - if you think it sounds useful, please consider contributing an example or two from your own research. The project is currently being coordinated by InLab, with support from the CoFI development team.

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:

  • GravityDensity
  • SimpleRegression
  • XrayTomography

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

from cofi_espresso import GravityDensity

problem = GravityDensity(example_number=1)
model = problem.good_model
data = problem.data
pred = problem.forward(model)
fig_model = problem.plot_model(model)
fig_data = problem.plot_data(data, pred)

You can access related metadata programatically:

print(GravityDensity.problem_title)
print(GravityDensity.problem_short_description)
print(GravityDensity.author_names)

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

print(problem.m)
print(problem.rec_coords)

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

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.dev12.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

cofi_espresso-0.0.1.dev12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cofi_espresso-0.0.1.dev12-cp310-cp310-macosx_11_0_arm64.whl (973.9 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

cofi_espresso-0.0.1.dev12-cp310-cp310-macosx_10_9_x86_64.whl (973.9 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

cofi_espresso-0.0.1.dev12-cp39-cp39-macosx_11_0_arm64.whl (973.9 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

cofi_espresso-0.0.1.dev12-cp39-cp39-macosx_10_9_x86_64.whl (973.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

cofi_espresso-0.0.1.dev12-cp38-cp38-macosx_11_0_arm64.whl (973.9 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

cofi_espresso-0.0.1.dev12-cp38-cp38-macosx_10_9_x86_64.whl (973.9 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

cofi_espresso-0.0.1.dev12-cp37-cp37m-macosx_10_9_x86_64.whl (973.9 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev12-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

cofi_espresso-0.0.1.dev12-cp36-cp36m-macosx_10_9_x86_64.whl (973.9 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: cofi_espresso-0.0.1.dev12.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for cofi_espresso-0.0.1.dev12.tar.gz
Algorithm Hash digest
SHA256 f4a27f9cce927bd51507cb746c9dd36a6f97d8e375d98550f316d6f2469e1d33
MD5 5a920a404fcc0c6e4c3ed56ade68fe82
BLAKE2b-256 69e7fd6663c4ef7bb1ac2cc69752d81a1bbb263462c0818f40e94356d89b3f96

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e3529ff299838f0722daa3407bf389f7d9881b56bc98a6417f1bd96860d830d5
MD5 b5b747f28090be53073cf6a4ac1739aa
BLAKE2b-256 6e26bed4e3a6e9d88e3e8bcef009d0b0045457a5352ca9d99c2f66416923af95

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca7f50ccb0d45ec75b7afa76fb9f4c539d35a157bd257d6cb8c65f98ab0fdd7c
MD5 785ee3d0ff858bbef959ffd648c73182
BLAKE2b-256 d2a8c073aa35f86c4222ab91f5b72fee4f71417f68ada906e53e389bfa44880d

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a25116b9ef321797740882cfe624f6fc84addc926ef3ffd1ab12ec7726b3215a
MD5 40b0bce860b571699ae9f45d042c0fad
BLAKE2b-256 cb5eafa6aadba7f4dea34491cd707b5309b934a669829960a8b9c815fa74b4eb

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 79077bb9c52fe521cb65e4c7ebfee1b4e21d5966e52abf9a0876fa2c06a1a410
MD5 a36b1291138cbc610a402b5ebdad296e
BLAKE2b-256 ff8a8f48fb23a0918bf714ec829bdbb4e7a53b858287c7a3e0c125ffbda0b7e5

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4dc622d46bec0b783d1f89cb0d8a8828abc3ef92574ce2563bfbe3c7913c059
MD5 d0abc7fe4021b5bf8b98a8d52cceda68
BLAKE2b-256 8c48b6c349dfc189523008e84fcd7c7ae5656b15f93b30d7c4142939d9d6ddfb

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0c58801a8c72a0fced888f29fd08f11818475edf6f59b4f86a9e21aac3479ff1
MD5 8efb2bacac88f2e088ea4a78b65af7b7
BLAKE2b-256 7f9845c8c7a32cd9d00eae21c4b97c6f72144de70f3ee3074454cf35d8528bf6

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0c6c8355f5a925ee48b8b313c622988ad7101b44cc6b39a44f31f535b4d1c9b
MD5 9ac6e3cb427f6384fd50d2b09dcbc366
BLAKE2b-256 5044e782f518fa2bfe64b356362785f3942feec9617ec91869f73b69d91212a7

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a34db47196764943923a09799f3cb5687adbf926fa85fd9fd4b7ba9708d5d5d9
MD5 208fa42802916af3fff65636a942b5f4
BLAKE2b-256 33d48419e0996c83cfed156a53f3693fec196b233a6e1bf124ac267f49eb2d00

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 34bc58810b3ecbeb5f24a713394578faa2b3ac94f7be18d2dd789e19a94cd516
MD5 74fb965cdb418acfe322edad0857831a
BLAKE2b-256 b06f76cc24ff7b7e2df89628ca7650da1ce9f6f4d924fef103bebbe3f51539e0

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2beac0488ac4e2f4577ae7b182992a34ba7e1b0d32c86aada31fb121a18b39b7
MD5 b7277adc9d2f994ccad00e253ffd05cd
BLAKE2b-256 20467b68b3401a38fb0b01b4646bf3efc3424a6e9b109fbee73d2762c3aa38e5

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d8c517779305a7a40366f3f255e7ee4d8a9500b974cbbd758886d64aed96e7a5
MD5 01d13fe35ebbf10f832a7fa24368b6a5
BLAKE2b-256 0910037746916bc2fdbde108529f1cd955e9e5ff80b071ddfd0c6638be407299

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 07b1ccb0b4b6edde592af49fb64f03f1ad7643d1f22e2835f89746526664c43f
MD5 4c0fe52754588d9ab28d56532159140e
BLAKE2b-256 f85e7492efbf03c23f632b93097964736bd7b5c98da62696b840e5398a9fe460

See more details on using hashes here.

File details

Details for the file cofi_espresso-0.0.1.dev12-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev12-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b159b49da4b9bf3c14fdd5668d1954edd2222da9959637e9d1157c26433130f3
MD5 62c8717bc75a212ddbd9bfe6f03ef4a8
BLAKE2b-256 dda19c21ac2db00b4f28b88efdad45445be493712a23f129bef3897176eb6f12

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