Espresso
Related repositories by InLab
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.
Installation
$ pip install geo-espresso
Check Espresso documentation - installation page for details on dependencies and setting up with virtual environments.
Building espresso from source
In a fresh environment, simply run
pip install .
or for an editable install
pip install -e .
Basic usage
Once installed, each test problem can be imported using the following command:
from espresso import <testproblem>
Replace <testproblem> with an actual problem class in Espresso, such as
SimpleRegression and FmmTomography. See
here
for a full list of problems Espresso currently includes.
Once a problem is imported, its main functions can be called using the same structure for each problem. For instance:
from espresso import FmmTomography
problem = FmmTomography(example_number=1)
model = problem.good_model
data = problem.data
pred = problem.forward(model)
fig_model = problem.plot_model(model)
You can access related metadata programatically:
print(FmmTomography.metadata["problem_title"])
print(FmmTomography.metadata["problem_short_description"])
print(FmmTomography.metadata["author_names"])
Other problem-specific parameters can be accessed through the problem instance. For instance:
print(problem.extent)
print(problem.model_shape)
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.
Metadata
Release files for geo-espresso 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| geo_espresso-0.4.0.tar.gz | 72.8 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geo_espresso-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 146.1 MB
Release files / geo_espresso-0.4.0.tar.gz
| Download URL | geo_espresso-0.4.0.tar.gz |
|---|---|
| Size | 72.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d95b9a5ef4a2d6343fcc34fe25b0a3552915c4822976b2369e345e5fa37c04a0
|
|
BLAKE2b-256 checksum How to use checksums |
34ef0e31a9bed70094646993c5336786f5dfab152c1f8a984c0e518cb521af6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / geo_espresso-0.4.0-py3-none-any.whl
| Download URL | geo_espresso-0.4.0-py3-none-any.whl |
|---|---|
| Size | 73.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ae47fb03d542ed3c23b583226f68bd6b33b2e2ce507fd7f1a55b18b9989f810
|
|
BLAKE2b-256 checksum How to use checksums |
b562975e47f4aeaf0f2e7c029f32d1b1e7913f47ee7a8f20844c3764bd2a6dab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for geo-espresso 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.