Metadata-Version: 2.4
Name: ert
Version: 21.0.6
Summary: Ensemble based Reservoir Tool (ERT)
Author-email: Equinor ASA <fg_sib-scout@equinor.com>
License-Expression: GPL-3.0-only
Project-URL: Repository, https://github.com/equinor/ert
Platform: all
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: <3.14,>=3.11
Description-Content-Type: text/markdown
License-File: COPYING
Requires-Dist: aiohttp
Requires-Dist: anyio
Requires-Dist: colorama
Requires-Dist: cryptography
Requires-Dist: decorator
Requires-Dist: dnspython>=2
Requires-Dist: fastapi
Requires-Dist: fastexcel>=0.14.0
Requires-Dist: filelock
Requires-Dist: graphite-maps
Requires-Dist: httpx
Requires-Dist: httpx-retries
Requires-Dist: humanize
Requires-Dist: iterative_ensemble_smoother==0.6.0
Requires-Dist: jinja2>=2.10
Requires-Dist: lark
Requires-Dist: lxml
Requires-Dist: matplotlib
Requires-Dist: netCDF4
Requires-Dist: networkx
Requires-Dist: numpy
Requires-Dist: opentelemetry-api
Requires-Dist: opentelemetry-instrumentation-threading
Requires-Dist: opentelemetry-sdk
Requires-Dist: orjson
Requires-Dist: packaging
Requires-Dist: pandas<3
Requires-Dist: pluggy>=1.3.0
Requires-Dist: polars!=1.35,>=1.32.3
Requires-Dist: progressbar2
Requires-Dist: psutil
Requires-Dist: pyarrow
Requires-Dist: pydantic>2
Requires-Dist: pyqt6<6.10.0
Requires-Dist: python-dateutil
Requires-Dist: python-multipart
Requires-Dist: pyyaml
Requires-Dist: pyzmq
Requires-Dist: requests
Requires-Dist: resfo>=5.0.0
Requires-Dist: ropt-dakota<0.26,>=0.25
Requires-Dist: ropt[pandas]<0.26,>=0.25
Requires-Dist: ruamel.yaml
Requires-Dist: scipy>=1.10.1
Requires-Dist: seaborn
Requires-Dist: surfio>=0.0.11
Requires-Dist: tables
Requires-Dist: tabulate
Requires-Dist: tqdm>=4.62.0
Requires-Dist: typing_extensions>=4.5
Requires-Dist: uvicorn>=0.17.0
Requires-Dist: websockets
Requires-Dist: xarray
Requires-Dist: xtgeo>=3.3.0
Requires-Dist: resfo-utilities>=0.5.0
Dynamic: license-file

<h1 align="center">
<img src="https://raw.githubusercontent.com/equinor/ert/main/src/ert/gui/resources/gui/img/ert_icon.svg" width="200">
</h1>

[![Build Status](https://github.com/equinor/ert/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/equinor/ert/actions/workflows/build_and_test.yml)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ert)](https://img.shields.io/pypi/pyversions/ert)
[![Code Style](https://github.com/equinor/ert/actions/workflows/style.yml/badge.svg)](https://github.com/equinor/ert/actions/workflows/style.yml)
[![Type checking](https://github.com/equinor/ert/actions/workflows/typing.yml/badge.svg)](https://github.com/equinor/ert/actions/workflows/typing.yml)
[![codecov](https://codecov.io/gh/equinor/ert/graph/badge.svg?token=keVAcWavZ1)](https://codecov.io/gh/equinor/ert)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

ert - Ensemble based Reservoir Tool - is designed for running
ensembles of dynamical models such as reservoir models,
in order to do sensitivity analysis and data assimilation.
ert supports data assimilation using the Ensemble Smoother (ES) and
Ensemble Smoother with Multiple Data Assimilation (ES-MDA).

## Installation

```sh
pip install ert
ert --help
```

or, for the latest development version:

```sh
pip install git+https://github.com/equinor/ert.git@main
ert --help
```

For examples and help with configuration, see the [ert Documentation](https://ert.readthedocs.io/en/latest/getting_started/configuration/poly_new/guide.html#configuration-guide).

# Everest™

<h1 align="center">
<img src="https://raw.githubusercontent.com/equinor/ert/main/src/everest/assets/everest_logo.svg" width="300">
</h1>

The primary goal of the Everest tool is to find *optimal* well
planning and production strategies by utilizing an ensemble of
reservoir models (e.g., an ensemble of geologically-consistent models).
This will enable robust decisions about drilling schedule and well
placement, in order to achieve results of significant practical value.

```sh
pip install ert[everest]
```

## Developing

We use uv to have one synchronized development environment for all packages.
See [installing uv](https://docs.astral.sh/uv/getting-started/installation/). We
recommend installing uv using your system's package manager, or into a small
dedicated virtual environment.

Once uv is installed, you can get a development environment by running:

```sh
git clone https://github.com/equinor/ert
cd ert
uv sync --all-groups
```

### Test setup

The tests can be run with pytest directly, but this is very slow:

```sh
uv run pytest tests/
```

There are many kinds of tests in the `tests` directory, while iterating on your
code you can run a fast subset of the tests with by using the rapid checks from the
justfile:

```sh
uv run just rapid-tests
```

You can also run all of the checks in parallel with

```sh
uv run just check-all
```

[Git LFS](https://git-lfs.com/) must be installed to get all the files. This is
packaged as `git-lfs` on Ubuntu, Fedora or macOS Homebrew.  For Equinor TGX
users, it is preinstalled.

If you have not used git-lfs before, you might have to make changes to your global Git config for git-lfs to work properly.
```sh
git lfs install
```

test-data/ert/block_storage is a submodule and must be checked out.
```sh
git submodule update --init --recursive
```

If you checked out submodules without having git lfs installed, you can force git lfs to run in all submodules with:
```sh
git submodule foreach "git lfs pull"
```

### Build documentation

You can build the documentation after installation by running
```sh
uv run just build-docs
```
and then open the generated `./ert_docs/index.html` or
`./everest_docs/index.html` in a browser.

To automatically reload on changes you may use

```sh
uv run sphinx-autobuild docs/ert docs/ert/_build/html
```

for ert and

```sh
uv run sphinx-autobuild docs/everest docs/everest/_build/html
```

for everest.

### Style requirements

There are a set of style requirements, which are gathered in the `pre-commit`
configuration. After running `uv sync --all-groups`, `pre-commit` is already
available. To have it automatically run on each commit:

```sh
uv run pre-commit install
```

There is also a pre-push hook configured in `pre-commit` to run a collection of
relatively fast tests, to install this hook:

```sh
uv run pre-commit install --hook-type pre-push
```


### Trouble with setup

As a simple test of your `ert` installation, you may try to run one of the
examples, for instance:


```sh
uv run just poly
```
This opens up the ert graphical user interface with a simple example using
polynomials (see `./test-data/ert/poly_example`).

Finally, test ert by starting and successfully running the experiment.

### Notes

The default maximum number of open files is normally relatively low on MacOS
and some Linux distributions. This is likely to make tests crash with mysterious
error-messages. You can inspect the current limits in your shell by issuing the
command `ulimit -a`. In order to increase maximum number of open files, run
`ulimit -n 16384` (or some other large number) and put the command in your
`.profile` to make it persist.

### ert with a reservoir simulator
To actually get ert to work at your site you need to configure details about
your system; at the very least this means you must configure where your
reservoir simulator is installed. In addition you might want to configure e.g.
queue system in the `site-config` file, but that is not strictly necessary for
a basic test.
