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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: cofi_espresso-0.0.1.dev10.tar.gz
  • Upload date:
  • Size: 1.1 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.dev10.tar.gz
Algorithm Hash digest
SHA256 7b1600d83ef19d02f6ffb1f943b9ec589160d5e83ef8e3536cdf8af1c16e633c
MD5 f32d847eb2e2b02945b5ae69e5dc7897
BLAKE2b-256 d9b5e68aafa473d6e44d06b48f124827d851585d5da20796dd8dd5a05af626bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 024b319173f3b78ee58b8861b6c2e0c41d78d7b6288a441127f6215556cbeed7
MD5 388d268a62d3b68fe534801e5900a90f
BLAKE2b-256 080f06814ef4e3772e74ff5313d73728b6c4f1955fc1f6deef8752f6d2aa2e68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cb58b6b90515f9b7ec5134bea5b740d865d3b403d151a00e9e562de507b5506
MD5 5870384deb27722a0807be657fce1d8f
BLAKE2b-256 104308a3db0c7d5ca618b0236fd42bd1366105a785710561c46d04edfdbcb8c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f7e5370484da55b8aed412b7dff308a906b0e73efdf7c4e97e95927efd4b9526
MD5 7f26707fe88608206ab0a1627b80a435
BLAKE2b-256 6a41ada4a228a2c6129315aac888f0695127594ec59c97019ea9b5b1795543b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8b0807083b452930ec1092d643cbc98f812d91027a88c62e6dc9eaa654cc476e
MD5 0235f62d581427852d98626b6a13211a
BLAKE2b-256 e2ff08f268b70ea853a77b6669922971ba9ffe26f8a4689620aa0302f4d65d6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f21544e89264cc16c18565fa5948573140f38c6296c31174958a6a97a59709b2
MD5 de797febd0a71808777d988d0afaa06a
BLAKE2b-256 c0f740aedbe03609e3fb430a99e9e593cf17a476faaf649a7a930812d0bd999f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 613ed62c1ae9808f24881694ead68b70cd87c17f4e1a1593699653e042f467ee
MD5 0520b89e2c713bf2c69c5ab64aea586f
BLAKE2b-256 81502cd0eff82c024eff4b4a47c7f3b11e2031ee0028c4d30694c46b3bde83ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8bb0275674af1dd65befdb445500ba8e135b6ca8d266aa841241a7f5ecb1b7b
MD5 3b472a769e232a154dcf863d2f85aa2b
BLAKE2b-256 6eb7dfda3c7b987af77f361bd8d9a292831908afca1a32e9473eb65354ecd6df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 abb73778bc2ae38cf8f81a8bfb0d4d948b1717ce9d063b6c00bced65d5545aaf
MD5 e726dc4f85f6907503053d526c9656a5
BLAKE2b-256 d844773bc66f1136e7b294c014bc2849c81e41f86ca244dcbbf0498b0c23c551

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 943b791750f550ae8bc9dffd976497fa77cc9b235fea1d425ed7e2bbf3db3482
MD5 673b8b4bfef3ed7379b640af642e539e
BLAKE2b-256 7fbaebc12ac5077d89ff1b22ce568c5f38c04816cd391f4ab5cc5db9296efc6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86f6385e2573a74dbbb58c0e07ee0e57309b2dc59d088b176c93fb8b057c83dc
MD5 edbac803538af62aff15d1ecc63775d1
BLAKE2b-256 6384995d098fd0bf29a80aa397bf6ddfef6706af7f4730813512a930f769a484

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cc0a38659b6ad4069d49f6603289a6508a94f0a0167ad0fbffbbe925d0bc1e8b
MD5 881c24012d0675beadc1b9bbed7016e1
BLAKE2b-256 e0009b45d3006b635f98b4289d72be41f2a6278a9e18e351fabb6dd45e5fd680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b0c347fde223f573a19b1c0aac6f419439db5ac265b81bcf4cd54dd355c60b5
MD5 54f855c5aaffb992727a285fd0d51d02
BLAKE2b-256 ebcd2adf53bcac85d9ef7dc698aa7bd3f1429142a99b10e5abae8b72699aa5f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev10-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 67e74870568ccfcae3c633ddc957ec65822ad7781db7aef94ac23170bbc58b11
MD5 94bf09d5987b547f57b42b443db4d2cb
BLAKE2b-256 ab5ba31e69116789b190eec31cd1c4b7f23446d2f3182c756df627946c7ff95d

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