geo-espresso


Namegeo-espresso JSON
Version 0.3.19 PyPI version JSON
download
home_pageNone
SummaryEarth Science PRoblems for the Evaluation of Strategies, Solvers and Optimizers
upload_time2024-12-12 05:16:16
maintainerNone
docs_urlNone
authorInLab, Espresso development team
requires_python>=3.8
licenseNone
keywords inversion inference python package geoscience geophysics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Espresso

[![PyPI version](https://img.shields.io/pypi/v/geo-espresso?logo=pypi&style=flat-square&color=bde0fe&labelColor=f8f9fa)](https://pypi.org/project/geo-espresso/)
[![build](https://img.shields.io/github/actions/workflow/status/inlab-geo/espresso/build_wheels.yml?branch=main&logo=githubactions&style=flat-square&color=ccd5ae&labelColor=f8f9fa)](https://github.com/inlab-geo/espresso/actions/workflows/build_wheels.yml)
[![Documentation Status](https://img.shields.io/readthedocs/geo-espresso?logo=readthedocs&style=flat-square&color=fed9b7&labelColor=f8f9fa&logoColor=eaac8b)](https://geo-espresso.readthedocs.io/en/latest/?badge=latest)
[![Slack](https://img.shields.io/badge/Slack-InLab_community-4A154B?logo=slack&style=flat-square&color=cdb4db&labelColor=f8f9fa&logoColor=9c89b8)](https://join.slack.com/t/inlab-community/shared_invite/zt-1ejny069z-v5ZyvP2tDjBR42OAu~TkHg)

> Related repositories by [InLab](https://inlab.edu.au/community/)
> - [CoFI](https://github.com/inlab-geo/cofi)
> - [CoFI Examples](https://github.com/inlab-geo/cofi-examples)

## Introduction

**E**arth **S**cience **PR**oblems for the **E**valuation of **S**trategies, 
**S**olvers and **O**ptimizers (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](https://geo-espresso.readthedocs.io).


## Installation

```console
$ pip install geo-espresso
```

Check Espresso documentation - 
[installation page](https://geo-espresso.readthedocs.io/en/latest/user_guide/installation.html) 
for details on dependencies and setting up with virtual environments.

## Building espresso from source

This is a temporary workaround that should result in a usable espresso. Please note that `pip install` 
and `python espresso_machine/build_package/build.py` do indeed need to be run twice...

```console
git clone https://github.com/inlab-geo/espresso.git espresso.git
cd espresso.git
pip install .
python espresso_machine/build_package/build.py all
pip install .
python espresso_machine/build_package/build.py all
```

This also assumes that you have the python packages `pytest`, `versioningit` and `tqdm` installed in addition to the packages listed in `pyporject.toml`. If not the installation script will report them as missing and you need to install them using `pip`. It also assumes that you have `cmake` and the gnu compilers installed i.e. `gcc` and `gfortran`

## Basic usage

Once installed, each test problem can be imported using the following command:

```python
from espresso import <testproblem>
```

Replace ``<testproblem>`` with an actual problem class in Espresso, such as
`SimpleRegression` and `FmmTomography`. See 
[here](https://geo-espresso.readthedocs.io/en/latest/user_guide/contrib/index.html) 
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:

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

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

```python
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](https://geo-espresso.readthedocs.io/en/latest/user_guide/contrib/index.html).


## Contributing

Interested in contributing? Please check out our [contributor's guide](https://geo-espresso.readthedocs.io/en/latest/contributor_guide/index.html).


## 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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "geo-espresso",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "inversion, inference, python package, geoscience, geophysics",
    "author": "InLab, Espresso development team",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/3d/d4/16a9609edae797f25e9f2b3940db04cde80c885d4695397c48756eb1be8d/geo_espresso-0.3.19.tar.gz",
    "platform": null,
    "description": "# Espresso\n\n[![PyPI version](https://img.shields.io/pypi/v/geo-espresso?logo=pypi&style=flat-square&color=bde0fe&labelColor=f8f9fa)](https://pypi.org/project/geo-espresso/)\n[![build](https://img.shields.io/github/actions/workflow/status/inlab-geo/espresso/build_wheels.yml?branch=main&logo=githubactions&style=flat-square&color=ccd5ae&labelColor=f8f9fa)](https://github.com/inlab-geo/espresso/actions/workflows/build_wheels.yml)\n[![Documentation Status](https://img.shields.io/readthedocs/geo-espresso?logo=readthedocs&style=flat-square&color=fed9b7&labelColor=f8f9fa&logoColor=eaac8b)](https://geo-espresso.readthedocs.io/en/latest/?badge=latest)\n[![Slack](https://img.shields.io/badge/Slack-InLab_community-4A154B?logo=slack&style=flat-square&color=cdb4db&labelColor=f8f9fa&logoColor=9c89b8)](https://join.slack.com/t/inlab-community/shared_invite/zt-1ejny069z-v5ZyvP2tDjBR42OAu~TkHg)\n\n> Related repositories by [InLab](https://inlab.edu.au/community/)\n> - [CoFI](https://github.com/inlab-geo/cofi)\n> - [CoFI Examples](https://github.com/inlab-geo/cofi-examples)\n\n## Introduction\n\n**E**arth **S**cience **PR**oblems for the **E**valuation of **S**trategies, \n**S**olvers and **O**ptimizers (Espresso) is a collection of datasets, and \nassociated simulation codes, spanning a wide range of geoscience problems. \nTogether they form a suite of real-world test problems that can be used to \nsupport the development, evaluation and benchmarking of a wide range of tools\nand algorithms for inference, inversion and optimisation. All problems are \ndesigned to share a common interface, so that changing from one test problem\nto another requires changing one line of code. \n\nThe Espresso project is a community effort - if you think it sounds useful,\nplease consider contributing an example or two from your own research. The project\nis currently being coordinated by InLab, with support from the CoFI development\nteam.\n\nFor more information, please visit [our\ndocumentation](https://geo-espresso.readthedocs.io).\n\n\n## Installation\n\n```console\n$ pip install geo-espresso\n```\n\nCheck Espresso documentation - \n[installation page](https://geo-espresso.readthedocs.io/en/latest/user_guide/installation.html) \nfor details on dependencies and setting up with virtual environments.\n\n## Building espresso from source\n\nThis is a temporary workaround that should result in a usable espresso. Please note that `pip install` \nand `python espresso_machine/build_package/build.py` do indeed need to be run twice...\n\n```console\ngit clone https://github.com/inlab-geo/espresso.git espresso.git\ncd espresso.git\npip install .\npython espresso_machine/build_package/build.py all\npip install .\npython espresso_machine/build_package/build.py all\n```\n\nThis also assumes that you have the python packages `pytest`, `versioningit` and `tqdm` installed in addition to the packages listed in `pyporject.toml`. If not the installation script will report them as missing and you need to install them using `pip`. It also assumes that you have `cmake` and the gnu compilers installed i.e. `gcc` and `gfortran`\n\n## Basic usage\n\nOnce installed, each test problem can be imported using the following command:\n\n```python\nfrom espresso import <testproblem>\n```\n\nReplace ``<testproblem>`` with an actual problem class in Espresso, such as\n`SimpleRegression` and `FmmTomography`. See \n[here](https://geo-espresso.readthedocs.io/en/latest/user_guide/contrib/index.html) \nfor a full list of problems Espresso currently includes.\n\nOnce a problem is imported, its main functions can be called using the same \nstructure for each problem. For instance:\n\n```python\nfrom espresso import FmmTomography\n\nproblem = FmmTomography(example_number=1)\nmodel = problem.good_model\ndata = problem.data\npred = problem.forward(model)\nfig_model = problem.plot_model(model)\n```\n\nYou can access related metadata programatically:\n\n```python\nprint(FmmTomography.metadata[\"problem_title\"])\nprint(FmmTomography.metadata[\"problem_short_description\"])\nprint(FmmTomography.metadata[\"author_names\"])\n```\n\nOther problem-specific parameters can be accessed through the problem instance. For instance:\n\n```python\nprint(problem.extent)\nprint(problem.model_shape)\n```\n\nWhich additional values are set is highly problem-specific and we suggest to \nconsult the \n[Espresso Documentation on the problems](https://geo-espresso.readthedocs.io/en/latest/user_guide/contrib/index.html).\n\n\n## Contributing\n\nInterested in contributing? Please check out our [contributor's guide](https://geo-espresso.readthedocs.io/en/latest/contributor_guide/index.html).\n\n\n## Licence\n\nEspresso is a community driven project to create a large suite of forward\nsimulations to enable researchers to get example data without the need to \nunderstand each individual problem in detail.\n\nLicensing is done individually by each contributor. If a contributor wants to freely share their code example we recommend the MIT licence or a \n2-clause BSD licence. To determine the licence of an existing Espresso\nproblem, please consult the documentation section of that problem.\n\nAll the other core functions of Espresso written by InLab Espresso developer\nteam are distributed under a 2-clause BSD licence. A copy of this licence is\nprovided with distributions of the software.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Earth Science PRoblems for the Evaluation of Strategies, Solvers and Optimizers",
    "version": "0.3.19",
    "project_urls": null,
    "split_keywords": [
        "inversion",
        " inference",
        " python package",
        " geoscience",
        " geophysics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0a375763d7ea8a0d0603c267d7edec5cd3b1356fbc1f391edf2fa4bcbad7892",
                "md5": "b571670c4616100b976b55c9239b89d7",
                "sha256": "f7d68064041ae94b769d5b5ee79b6eb7eca2922f6e4dc7db7df5a349794a56da"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp310-cp310-macosx_14_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "b571670c4616100b976b55c9239b89d7",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 74359671,
            "upload_time": "2024-12-12T05:14:27",
            "upload_time_iso_8601": "2024-12-12T05:14:27.248331Z",
            "url": "https://files.pythonhosted.org/packages/f0/a3/75763d7ea8a0d0603c267d7edec5cd3b1356fbc1f391edf2fa4bcbad7892/geo_espresso-0.3.19-cp310-cp310-macosx_14_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b5fb4e593a5dc3259b795e1dcb8c820c89e7b9f824076949deb8e54ad083799",
                "md5": "f5cbd5b4c2219f419884694cfd0a41b5",
                "sha256": "5fb5ba5d86a817a046da7841daa77525c3f0700c8ec57aa10dd9e8da5394b228"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp310-cp310-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "f5cbd5b4c2219f419884694cfd0a41b5",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 74659939,
            "upload_time": "2024-12-12T05:14:38",
            "upload_time_iso_8601": "2024-12-12T05:14:38.897357Z",
            "url": "https://files.pythonhosted.org/packages/7b/5f/b4e593a5dc3259b795e1dcb8c820c89e7b9f824076949deb8e54ad083799/geo_espresso-0.3.19-cp310-cp310-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "925e69aa45a70c2b7aae05d58a11a2775b62f75fa5bdce414eddc16642dafbd8",
                "md5": "88eca83d3ac4391c6277fbb3b3a87fae",
                "sha256": "d572632de1b674f46056254815c7f261f2fd22bbe488b479df88fdcf0432c78c"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp311-cp311-macosx_14_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "88eca83d3ac4391c6277fbb3b3a87fae",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 74359667,
            "upload_time": "2024-12-12T05:14:49",
            "upload_time_iso_8601": "2024-12-12T05:14:49.798036Z",
            "url": "https://files.pythonhosted.org/packages/92/5e/69aa45a70c2b7aae05d58a11a2775b62f75fa5bdce414eddc16642dafbd8/geo_espresso-0.3.19-cp311-cp311-macosx_14_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eea2117ef50042936f4027cb59ac9fc9349d619bf7e88c84d18a937c63346725",
                "md5": "ed089fb6c314a1f758795fb728331380",
                "sha256": "d6c76a8e1ead04d0f7efd149f451ec1ae9eb1553990d7a2d90ae18c27072668a"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp311-cp311-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "ed089fb6c314a1f758795fb728331380",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 74659941,
            "upload_time": "2024-12-12T05:15:01",
            "upload_time_iso_8601": "2024-12-12T05:15:01.453634Z",
            "url": "https://files.pythonhosted.org/packages/ee/a2/117ef50042936f4027cb59ac9fc9349d619bf7e88c84d18a937c63346725/geo_espresso-0.3.19-cp311-cp311-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "634d0fa5d20e8e3b3111862d0434b5684cb55fa58abb38da4f4cdbb1edbf064b",
                "md5": "a85791edcdd400af0f6d6e258317fdec",
                "sha256": "2a52b68183b185c1d4c85ee141e7d465547f451c38c136f319eff820ff4d56eb"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp312-cp312-macosx_14_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "a85791edcdd400af0f6d6e258317fdec",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 74359675,
            "upload_time": "2024-12-12T05:15:11",
            "upload_time_iso_8601": "2024-12-12T05:15:11.504772Z",
            "url": "https://files.pythonhosted.org/packages/63/4d/0fa5d20e8e3b3111862d0434b5684cb55fa58abb38da4f4cdbb1edbf064b/geo_espresso-0.3.19-cp312-cp312-macosx_14_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e9bcdaf4cdf105e5a5e15bbd466467a2352b83d6569a9d1f506cc78d9a1b3ea",
                "md5": "fe21e100cba53a05b411c70d834ceed0",
                "sha256": "10ee05eb6b3540e85fba00d5db9ab60c4ef876c711493d83a8e9ad6ca97f9473"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp312-cp312-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "fe21e100cba53a05b411c70d834ceed0",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 74659943,
            "upload_time": "2024-12-12T05:15:23",
            "upload_time_iso_8601": "2024-12-12T05:15:23.349606Z",
            "url": "https://files.pythonhosted.org/packages/7e/9b/cdaf4cdf105e5a5e15bbd466467a2352b83d6569a9d1f506cc78d9a1b3ea/geo_espresso-0.3.19-cp312-cp312-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "373ae2ef5d14da2cffb98fcb39a0368d341ff1c54c27a346bb684f4272017028",
                "md5": "d503ce720f57b61c66ba94b091cff0fb",
                "sha256": "7af9c732cb1173bc183882dfa03dbedd4b4cce9ca654c42755e4152bcb8be573"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp313-cp313-macosx_14_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "d503ce720f57b61c66ba94b091cff0fb",
            "packagetype": "bdist_wheel",
            "python_version": "cp313",
            "requires_python": ">=3.8",
            "size": 74359666,
            "upload_time": "2024-12-12T05:15:34",
            "upload_time_iso_8601": "2024-12-12T05:15:34.497104Z",
            "url": "https://files.pythonhosted.org/packages/37/3a/e2ef5d14da2cffb98fcb39a0368d341ff1c54c27a346bb684f4272017028/geo_espresso-0.3.19-cp313-cp313-macosx_14_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "741b7a0a99816d8b4f253b94a9ffc6307acc53fa8a3bc55b89de76fcb223c319",
                "md5": "cdd9d66602af47a00d031cdd5f51848a",
                "sha256": "4d18b8dec1fcdab2cf524e886ba091d70060c82c027ce9ec6a2b4a42fb7fa181"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp313-cp313-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "cdd9d66602af47a00d031cdd5f51848a",
            "packagetype": "bdist_wheel",
            "python_version": "cp313",
            "requires_python": ">=3.8",
            "size": 74659942,
            "upload_time": "2024-12-12T05:15:45",
            "upload_time_iso_8601": "2024-12-12T05:15:45.152352Z",
            "url": "https://files.pythonhosted.org/packages/74/1b/7a0a99816d8b4f253b94a9ffc6307acc53fa8a3bc55b89de76fcb223c319/geo_espresso-0.3.19-cp313-cp313-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "62581875a456f03e02caf565076c21461a8186cf4e71a10264d62304ff197d70",
                "md5": "170d23323e77ecc2823daa65526bf2c2",
                "sha256": "57abe4fdf763f3dc5bb28996aa71a2a3cb6c16692866e8cc8a4729099bcefdb9"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp39-cp39-macosx_14_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "170d23323e77ecc2823daa65526bf2c2",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 74359671,
            "upload_time": "2024-12-12T05:15:55",
            "upload_time_iso_8601": "2024-12-12T05:15:55.430577Z",
            "url": "https://files.pythonhosted.org/packages/62/58/1875a456f03e02caf565076c21461a8186cf4e71a10264d62304ff197d70/geo_espresso-0.3.19-cp39-cp39-macosx_14_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f8d87c34b0a96239e330e05f27ed82fdab60d32d3334a9bf21b08f3f5ab0de4c",
                "md5": "1d5a4afd4906daac8e8a4203552a0762",
                "sha256": "3fb510415b61c3b72a16fc34ff25d65516cd47f620900a4cdae61639399222db"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19-cp39-cp39-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "1d5a4afd4906daac8e8a4203552a0762",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 74659936,
            "upload_time": "2024-12-12T05:16:06",
            "upload_time_iso_8601": "2024-12-12T05:16:06.196058Z",
            "url": "https://files.pythonhosted.org/packages/f8/d8/7c34b0a96239e330e05f27ed82fdab60d32d3334a9bf21b08f3f5ab0de4c/geo_espresso-0.3.19-cp39-cp39-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3dd416a9609edae797f25e9f2b3940db04cde80c885d4695397c48756eb1be8d",
                "md5": "c08d6d0c86c6dcc5f942e6e52998b0f8",
                "sha256": "e9f4eea018bd714563161d70342fcae8a57d2543bb2bbb5efffca081721f9245"
            },
            "downloads": -1,
            "filename": "geo_espresso-0.3.19.tar.gz",
            "has_sig": false,
            "md5_digest": "c08d6d0c86c6dcc5f942e6e52998b0f8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 73393692,
            "upload_time": "2024-12-12T05:16:16",
            "upload_time_iso_8601": "2024-12-12T05:16:16.666727Z",
            "url": "https://files.pythonhosted.org/packages/3d/d4/16a9609edae797f25e9f2b3940db04cde80c885d4695397c48756eb1be8d/geo_espresso-0.3.19.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-12 05:16:16",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "geo-espresso"
}
        
Elapsed time: 0.38150s