Skip to main content

Part of the Ensemble based Reservoir Tool (ERT)

Project description

libres Libres testing Code style: black

libres is part of the ERT project: Ensemble based Reservoir Tool. It is now available in PyPI:

$ pip install equinor-libres

or, for the latest development version (requires GCC/clang and Python.h):

$ pip install git+https://github.com/equinor/libres.git@master

Development

libres is meant to be installed using setup.py, directly or using pip install ./. The CMakeLists.txt exists, but is used by setup.py to generate the libres C library and by Github Actions to run C tests.

libres requires a recent version of pip - hence you are advised to upgrade your pip installation with

$ pip install --upgrade pip

If your pip version is too old the installation of libres will fail, and the error messages will be incomprehensible.

Building

Use the following commands to start developing from a clean virtualenv

$ pip install -r requirements.txt
$ python setup.py develop

Alternatively, pip install -e . will also setup libres for development, but it will be more difficult to recompile the C library.

scikit-build is used for compiling the C library. It creates a directory named _skbuild which is reused upon future invocations of either python setup.py develop, or python setup.py build_ext. The latter only rebuilds the C library. In some cases this directory must be removed in order for compilation to succeed.

The C library files get installed into python/res/.libs, which is where the res module will look for them.

Testing Python code

Install the required testing packages and run tests.

$ pip install -r test_requirements.txt
$ pytest

Testing C code

Install ecl using CMake as a C library. Then:

$ mkdir build
$ cd build
$ cmake .. -DBUILD_TESTS=ON
$ cmake --build .
$ ctest --output-on-failure

Configuration

The site_config file

As part of the installation process libres will install a file called site-config in share/ert/site-config; when ert starts this file will be loaded before the users personal config file. For more extensive use of ert it might be benefical to customize the site-config file to your personal site.

To customize, you need to set the environment variable ERT_SITE_CONFIG to point to an alternative file that will be used.

6.2 Forward models

libres contains basic functionality for forward models to run the reservoir simulators Eclipse/flow and the geomodelling program RMS. Exactly how these programs depend on the setup on your site and you must make some modifications to two files installed with libres:

6.2.1. Eclipse/flow configuration

In the Python distribution installed by libres there is a file res/fm/ecl/ecl_config.yml which is used to configure the eclipse/flow versions are available at the location. You can provide an alternative configuration file by setting the environment variable ECL_SITE_CONFIG.

6.2.2. RMS configuration

In the Python distribution installed by libres there is a file: res/fm/rms/rms_config.yml which contains some site specific RMS configuration. You should provide an alternative file with your local path to the rms wrapper script supplied by Roxar by setting the environment variable RMS_SITE_CONFIG to point to the alternative file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

equinor_libres-11.0.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

equinor_libres-11.0.0-cp39-cp39-macosx_10_9_x86_64.whl (868.4 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

equinor_libres-11.0.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

equinor_libres-11.0.0-cp38-cp38-macosx_10_9_x86_64.whl (868.4 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

equinor_libres-11.0.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

equinor_libres-11.0.0-cp37-cp37m-macosx_10_9_x86_64.whl (868.4 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

equinor_libres-11.0.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

equinor_libres-11.0.0-cp36-cp36m-macosx_10_9_x86_64.whl (868.4 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file equinor_libres-11.0.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for equinor_libres-11.0.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d3ee3bffd8ab4d5e14988934cf72c684ad123d3e677c2f9c4bec6a5b704da149
MD5 17be55a12eeeb7354d94a920bbbc2852
BLAKE2b-256 92f784098c9bfa07090bb875b63b72c25cc3527672358317131fbcff0470f4bf

See more details on using hashes here.

File details

Details for the file equinor_libres-11.0.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-11.0.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 868.4 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for equinor_libres-11.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 98d94fb5fc40eb632d251674155552742b7a81f4664012ead3e85e8fc1e8e517
MD5 93cda11eab6d3a9a7b36923d6f68054f
BLAKE2b-256 33d0701f3f098ba1856c1986ac835e9a3f828aeb4ad674eeef446ee0ba16fabd

See more details on using hashes here.

File details

Details for the file equinor_libres-11.0.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for equinor_libres-11.0.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 02b36e8c6b844b20893b69d33f4221eb9fa07e4fb02a162b0cb08e24b5f920e2
MD5 7e999f861822f5ca2984569a12e2606d
BLAKE2b-256 4ac35c8c7348f54776f78e99494356a0768769ca531f17eec40bf2722d316b00

See more details on using hashes here.

File details

Details for the file equinor_libres-11.0.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-11.0.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 868.4 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for equinor_libres-11.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2a29d66155668f4dcc8b3dbf442999a69d7fdf1b1710e5a59f17fb581cdefa6a
MD5 f1ca3cb14b0ff00ae5523659ab79260a
BLAKE2b-256 7215ebd0e6a950c1a6f7d71347c7bede3dac59a8da870b9dda3c7838fe9d48a3

See more details on using hashes here.

File details

Details for the file equinor_libres-11.0.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for equinor_libres-11.0.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fa582aa199ccfde895adc9c1a967abd665819b81e447e20821b62297b4e7bc93
MD5 8268643183832b79c2f80e9cb0146496
BLAKE2b-256 ac1028ec88a1a822a5c2be17caefc61fae482e6e9b1d62e78d6d7b1affc89413

See more details on using hashes here.

File details

Details for the file equinor_libres-11.0.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-11.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 868.4 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for equinor_libres-11.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 871abd80d32232420b49170b6909aefe84d65702bd2b7f81f062a0175e1738d8
MD5 ffe4ce7e84f005d8a867588a33206a3e
BLAKE2b-256 4c0aea3bc13442cffe27f51c858c35e4cbc19e363b4b96f75421f7c5a86e7256

See more details on using hashes here.

File details

Details for the file equinor_libres-11.0.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for equinor_libres-11.0.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 bdaa18ba66205406883a59fbaf1c7d252a705f7dbe307bb8783343b8d537265b
MD5 98ddb787d11482fece16a93106f2c373
BLAKE2b-256 c1276b17ce57262a2cf9efb2f52c3233d50ad22c84901b52a61f8a955acb324f

See more details on using hashes here.

File details

Details for the file equinor_libres-11.0.0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-11.0.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 868.4 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for equinor_libres-11.0.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b83568546971985ca6ac3b9fd9d595229b745c46a70375db9d61775cbd337fd7
MD5 bdb45361e11f2cfe1024ccb0d6376d47
BLAKE2b-256 9a159e426c1d32b93a45dfa4cceb05d83493dcf3c585bfdf09684844f0d7a0e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page