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

Uploaded Source

Built Distributions

cofi_espresso-0.0.1.dev7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cofi_espresso-0.0.1.dev7-cp310-cp310-macosx_11_0_arm64.whl (903.0 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

cofi_espresso-0.0.1.dev7-cp310-cp310-macosx_10_9_x86_64.whl (903.0 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

cofi_espresso-0.0.1.dev7-cp39-cp39-macosx_11_0_arm64.whl (903.0 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

cofi_espresso-0.0.1.dev7-cp39-cp39-macosx_10_9_x86_64.whl (903.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

cofi_espresso-0.0.1.dev7-cp38-cp38-macosx_11_0_arm64.whl (903.0 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

cofi_espresso-0.0.1.dev7-cp38-cp38-macosx_10_9_x86_64.whl (903.0 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

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

cofi_espresso-0.0.1.dev7-cp37-cp37m-macosx_10_9_x86_64.whl (903.0 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

cofi_espresso-0.0.1.dev7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

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

cofi_espresso-0.0.1.dev7-cp36-cp36m-macosx_10_9_x86_64.whl (903.0 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for cofi_espresso-0.0.1.dev7.tar.gz
Algorithm Hash digest
SHA256 93d82c446fa537d520f0bd1aeefaf4706b1691b016bd38e6e6a5027a3bade57e
MD5 834d1e8125134133c2523656ea8c4eb9
BLAKE2b-256 ed7600eab7c20f946c981e511f1432cc6dc6062ba111e13cf8d9852cf4251510

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f768de6a529102dd57bae8195014b025f23f00140d347a1b5f72657fb28ab9d
MD5 44f669bcc699471545458b60dea935cc
BLAKE2b-256 2a186a37d2e5e84a0be7e7c0dc0153f19d803668526ba8409fe90906861c5984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b6484688e32547b0b5354bad386444b79f7c36ac1a8a8b545ee986c6c375d09
MD5 4d84ece64806e8f3f891b431785523c8
BLAKE2b-256 034e3a4c356156d2d359e0eb3e07c604a04b9b98de77278608fe5e3ccf8cf162

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 65153a9e85e67103939b71a2393c4e1f64357eaa89c67372288ff9f505b74250
MD5 6431ab2118b2fe94c5ce70a809f18c42
BLAKE2b-256 d7c2125da4c7932fd46c0f9db078fc86d2561f0025357ae384a8809ec4496a78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce9c255794284acfbc851a483cedd1bf470d8bc405b5829a09c9a711b596f68c
MD5 75a08d605c114933d87a6db97214047c
BLAKE2b-256 e735363a25c618f7832202d34e65450b8f4966e460740ce497d097e181be6b2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95b438f4750308743842924a3ba70a5ef9b3704642dd21a2c8119b1b800255c8
MD5 6585f62a87e2b0e7d9f5c74ce7165200
BLAKE2b-256 b1f5fc23285beb87cdd86206a1a9f1e6d848bd39bb1a6aaed46b1e35dfe5b38b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 30a429aa09c8dc8cee0bb12d73ee924a0649a8f02cde03e97f6d632268805e57
MD5 8fdd67ebf5a72be49ec069e6f28e1391
BLAKE2b-256 772db1f080c7fb4b7adf13dd55691f72fe1efcd76b7b0b4117ca6fcd99fedc73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ced7c8e9ccd33f63d1bf085a33e09676036f2fa025c3fdf27833a193215d8c2d
MD5 3c8dbeeabd41206fc786acc6092998cc
BLAKE2b-256 cdc314ce5f781c06908ddb32c0f5f17b94853a78dfb75bcef8a39de9efde5eed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13ddf7d351e6476bc55223063703b7fbcb86e28c0a0d6e298170e6bb6ac45733
MD5 6cbb37b23626b3e3b21f6889d14fd0a2
BLAKE2b-256 30235b01b738ca5a8762daa8805ce90674340af0df1cf9749155ea9e76a71e67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4166c2b5ef92ce9b63d376f81a10091fc3e5ebcc5fc235f7d5d2232f6be1d757
MD5 623363a1e56523266051bb5b29e7e906
BLAKE2b-256 d18712a4d45b2699231c522a2116f52c8393f4c331512d8bd23529e55ec1bb87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 665cb1ddf6778256387daae1cfbc7586818dcfde047240291406045d8a11f002
MD5 284ecc2162456d4958d0df5ac1934bfd
BLAKE2b-256 24230c33447bbdd254b111a8bb610e43148bd6da8bd7921e1a0993e5ce7e6e16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 785f81dd58cedd042d9c1493cd5450a1086607db52de0ef8329a8346f23b112c
MD5 e0bee74bf725dc453655497ada341096
BLAKE2b-256 64bfb0f734031f5437b75805e3d5ea4fbbf8c01a3a9603f92abccb169a08771b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5168d595302e32d0ed59478c264738c341fa77d9124d3ca5adac8e784d7ec9df
MD5 d2cf4f7dbf57e59b7cff2a4d9b23701d
BLAKE2b-256 92a9fefbff66116c4d0ffab3d7897065cb3c5c174b3d7513d100691e6e5e897c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev7-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7c1eb198ebe5dbb9c3d8f651621a7b5f8f5e352bc173fda5f4227f8dec8811b7
MD5 05bd12861d71be8d06256c26af595c8e
BLAKE2b-256 5e1172ae2c65da057789dc5bf16dbe4c77b195097d508a2a9220e14802d25aae

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