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

Uploaded Source

Built Distributions

cofi_espresso-0.0.1.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6.tar.gz.

File metadata

  • Download URL: cofi_espresso-0.0.1.dev6.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.dev6.tar.gz
Algorithm Hash digest
SHA256 5d79dcf35ec63cf78eec270efc0756b87233752d5b8b142059e527bfbb879771
MD5 e543e79bb7216f9d424d6c9f14b62a28
BLAKE2b-256 980d7c6a242d84b7ee6946e4ce79edb7bf6c72ad7e5fcc1b5dc4a78da543c3be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 deaba9d137056ffcd37137a68021d495df9fa244fbd6e7c847026d88cf0f49c0
MD5 74ecb75c6b6ae1c65e8eef00d40d483e
BLAKE2b-256 465a35c5b1eaff8b68049467565012cdd14b35ecb9f0b62b61c8a055856df70b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d4f4bb19ece83fed70a67545e7923e9cc84433edcef01609ba9f279af1fc440
MD5 50cf92e118e05130cdd9098330119e34
BLAKE2b-256 24de088d61dab6e029d53010bf45e058bbfff175ebad16ffde02369e1a00efe3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4969177d6a2cae5156e6e9ab9ee8fa9614605998d550ab29d51ea4092c7de558
MD5 d64e009e7c2412e75da8ad2e54b6d188
BLAKE2b-256 a8bd9931502c721b40a08b7d217e5d506f9baa0c62a8fbb19dafd3e622db6f05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 03ba62e0b96e39434c3f6c0fbcf2734e49daadcaa883eaab1ec2eb8239b29cbb
MD5 93747934bb1f4b3a69f41b7274fecd43
BLAKE2b-256 a20eecb2dec5e68a07aa5499480279ec418bab9e0ddbd0fa31af0465e19c467a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05f2341f0d21368f84aea58424e6dce11aec1ba3a1de73ac69ed3443b53335b7
MD5 c168c1a48d651f0591d913daf8286010
BLAKE2b-256 344b5b78c215bd87c06c267da5c2e3436782f6cddb29f467a784ebc95e5bdb5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6cf65a278a098e8cba140204ce9c25f1be47e406d96e67ffef7b76311d567589
MD5 6f6c41416ffcdfed81fbd68aa9f919f9
BLAKE2b-256 1174a0b6463123a86ef98cdb0890c67525be44385d36ed98ea086c7aed77e385

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e4b355462d7fcb51cb1eab54f07aca5f750d635b618bb1387210563033169cc1
MD5 8b48ee535eb38ccbe8aa11caa738837f
BLAKE2b-256 b27c29e0c0377a40296b42cc0f12c8c2fd930ed37b7e764787810d4980a7edc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37aa44a81e3b0f302d6137c8e602bcd44b1c753d484dd5aaa15b859b2a250b49
MD5 e168ef427103b8baf93f91b20acd684a
BLAKE2b-256 e478d207f24fe356db477aacf1540093d7eecf56a21d8d3935973b4ea9b138cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 894b60ea2039a403663971c08edbbaf520692a079ab1420e1787089ed42096ff
MD5 554c55f8b7a81de1c7ae8f67d3eb82cf
BLAKE2b-256 032b9903c38e1b79fc2e2a3d1e01d31bf35f496b9191a9cc604a5bd585b5a17e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6c4885c79e278ebec89536a66b1c2620025f61564021728700a385c45f4e227a
MD5 8e31f19d97caf91c3be9869b300a83aa
BLAKE2b-256 1ac2df79f5060710e1460260831e61bbf236c8d16464a662ee57c5b70beb8535

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b9f4f23ff68f0a5c98126baf076eea9710b3a8e4dfd0f9c41f9e6faf138d7c23
MD5 e0e05714d6b26db9692df2e4b5f0809d
BLAKE2b-256 31b7b2631ded38871f24189ba9582386f0ca14e8360a56243d3ea94a9185589e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e94f0bc219455cc4aaae29aaee8f1399bfb858d11935e2b7d458bfb36afd0ea7
MD5 bc860d3ee27c807dd6393fc5c93c22c7
BLAKE2b-256 127fa776391f6e2deb19346728c1ad074e01a27152e0f5621e1f8d5075ea7589

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cofi_espresso-0.0.1.dev6-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 456bcb53532501fcfa59010102a697c345dda6baab1bea92952eac02ddd54ed5
MD5 fbe1e97768d318c6b9fffa0c90a2d7c9
BLAKE2b-256 ef4804eb195cf10ecc5eb2af27c0652e15ba660bc9edb7573e9dc2344d33f635

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