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 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:

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

Uploaded Source

Built Distributions

cofi_espresso-0.0.1.dev11-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.dev11-cp310-cp310-macosx_11_0_arm64.whl (975.0 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

cofi_espresso-0.0.1.dev11-cp310-cp310-macosx_10_9_x86_64.whl (975.0 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev11-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.dev11-cp39-cp39-macosx_11_0_arm64.whl (975.0 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

cofi_espresso-0.0.1.dev11-cp39-cp39-macosx_10_9_x86_64.whl (975.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev11-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.dev11-cp38-cp38-macosx_11_0_arm64.whl (975.0 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

cofi_espresso-0.0.1.dev11-cp38-cp38-macosx_10_9_x86_64.whl (975.0 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev11-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.dev11-cp37-cp37m-macosx_10_9_x86_64.whl (975.0 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev11-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.dev11-cp36-cp36m-macosx_10_9_x86_64.whl (975.1 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for cofi_espresso-0.0.1.dev11.tar.gz
Algorithm Hash digest
SHA256 f4e354af9b0d51ff7ed738295f32b2a85dd89c5a181bec7926a26113817b41d8
MD5 8e3b5e81659c4c1e2a0f90585d46cb99
BLAKE2b-256 086b158d7f1e7b2760485cbd24f9a9bb7b793ad3248c83b150895ede70070558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c85e2dc93c29c4198a9518ceb9cabd6777dc848291642c159f45f0e6126313e3
MD5 d63adb38ef0d9d64af88f89b92f90e7f
BLAKE2b-256 f0eb0ed1e5d97d463a8359bb0f0e3d941b046088ea91f105251adcba022bcf39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db718af605ec43357dd3359df2f768f966bd2a537651cd1168c8c5ac420fd0e0
MD5 78372c47cdccce75437f167095a6195b
BLAKE2b-256 cf2e35bf96876bff636d12acb722ae1969588de40c7d4d2eb2460122f3b27276

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9b59012caa4120f295678bc8b46e54e97dd15600a7c99053ab221b71f8c9b0c1
MD5 fa46d67c91788076dd44167740c9b492
BLAKE2b-256 0624edb08d7b15fb61ed030a624f4dcf13be8379db0a6e3a7e5f2171694cfd31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 386aecbbafc0975adc6f0e177aa88e3da49c8785d9489f180f618174655ece5f
MD5 8be022911feb2133a08bb6c774cb7b49
BLAKE2b-256 5bd3c712afefc2fe8d81a76478163559960bc92f76538e85e8481205400e0721

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 027a5672dd08295b63e6ae4a79a412a43ac8086ab0590eb100f87384fc008e90
MD5 f8ca9182e81f879175cbcd5e7ff8675b
BLAKE2b-256 cd1da14349d3b8a8afb83622ed444e7ac881ba57445fdcd9a9ca4bf57b446b7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 438d4e9e6c29696a47e32a5364cf94d1406288ebf16df1febe9693c7f0798973
MD5 9e319678f6c91ccad06f84f6296dbc02
BLAKE2b-256 8355d7f963ce3e7e0efdcb794958d19113859316490cd16606fc9ad24552c1eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5415681072a1c69a56111cd23e409beb1bea36018ac60e5bf6f587bb70004ac5
MD5 4205741ba99d7035a056b1fb04c57e88
BLAKE2b-256 8a00b7c6869c3e65286d19c00f77b6b0b4d4e27dcb79dc77cbccdcdffd539719

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c66c0c9a08c50ca7bce14deaffc2ad717e0e2fedecc7172c564921e113d70774
MD5 64e1fa7644af41e06e79b4ed818f2f0d
BLAKE2b-256 7b6412c3719c33f10b42b4ac8cd3950c441843d9797fa731c4a742d9df6120a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 59a1deeb5b983ec5c720e8c745b2f8cae813c76415554e50ca7219efcbd9576a
MD5 07f5cf9474890b5a81df65162087fec8
BLAKE2b-256 ac8aebffc54d107e7a9ade012d700c6977435358d09715acc02c943dba43db24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 36f7b0e6d0619893b52d528221de5c72f82c0de7bc6ee70c8526b372aaa4bba4
MD5 0344b7d59212566cf3a30ff990e64706
BLAKE2b-256 c9c1cddae9ce747ce2a3685c2b7e1c14014d4c966ce17fbaaaa3b1299edcd45e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cef9127ac1771b70a835015b6acbfd10079d97a167c47ab13538446cd5492583
MD5 50c871d121b0ecb52896d274658325d3
BLAKE2b-256 e5489859c0bd22aa813ff102f055770a9a222c53b0f01b67c619254870f58ce1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7a4f1e50af0f72fb703de46fcc85953aeba376a1b4429a423155adf4ef2d5d44
MD5 9f4e08b8d4242ec9065d9c791e229239
BLAKE2b-256 5bfd77e29bb91a90c7f829e0f6150fdaa80c418bf4b624677457bace04c34ada

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev11-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0b96cf3fbcfd101d67cf29244e93451e7d0c6e56049291b1cce4d2885e107c59
MD5 d4f19fa2dfb7b4b52bd31159dd213f54
BLAKE2b-256 060ce426d071390361503bb3b4335bd598f964aa283174c170e2947276391f02

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