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.

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 python/tests

You may need to do export PYTHONPATH=$PWD/python for pytest to find your local development installation.

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-8.0.0b0-cp38-cp38-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

equinor_libres-8.0.0b0-cp38-cp38-macosx_10_9_x86_64.whl (932.3 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

equinor_libres-8.0.0b0-cp37-cp37m-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

equinor_libres-8.0.0b0-cp37-cp37m-macosx_10_9_x86_64.whl (932.3 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

equinor_libres-8.0.0b0-cp36-cp36m-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

equinor_libres-8.0.0b0-cp36-cp36m-macosx_10_9_x86_64.whl (932.3 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file equinor_libres-8.0.0b0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: equinor_libres-8.0.0b0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for equinor_libres-8.0.0b0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1750ebca68b4b1ea64611f03fdb16bee68825b38aef15d95e135ae7a0428041b
MD5 de7847b114b6d4ea12a58a75279b77d8
BLAKE2b-256 60e77a646fdd7573ea271b0c6a168b638cc71150628158c2a2e1f5b0f029fcd5

See more details on using hashes here.

File details

Details for the file equinor_libres-8.0.0b0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-8.0.0b0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 932.3 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for equinor_libres-8.0.0b0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6cfde8af7fe370a1322462e641edc4e76bd046d1576c0fcbcf22980d344a3578
MD5 1f1e10b76fa5f3be4e028c10baa6b95e
BLAKE2b-256 ebda7834226474ad6728407e20b9e5273f382a29f8fb02a74e9098577223efe1

See more details on using hashes here.

File details

Details for the file equinor_libres-8.0.0b0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: equinor_libres-8.0.0b0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for equinor_libres-8.0.0b0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 26c54e9e709a0ac9b3e877f6586f536c73c98cd3f8b0e2040f2fd7facf060e6f
MD5 f2f00f8c781b401a5025f92f77711a97
BLAKE2b-256 a0d7f15cfba79288af34cf64c9482cc7cefa6f3122bce50a3846076bf3e0399b

See more details on using hashes here.

File details

Details for the file equinor_libres-8.0.0b0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-8.0.0b0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 932.3 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for equinor_libres-8.0.0b0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1ad6753a64842c9fcb6e2411c0c0057a9db9ae3905cb282dc86d678b91c9d235
MD5 bbc57a8fc242f5de2db91e30c4505b70
BLAKE2b-256 ef569279f028c2d73d059bda0cc8ecf19e361ea49849a5439402bcf419dab096

See more details on using hashes here.

File details

Details for the file equinor_libres-8.0.0b0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: equinor_libres-8.0.0b0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for equinor_libres-8.0.0b0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dd1c47686776e5a7761b8ec52f44c7db0da8a5b6a9ae8e29393339f3cc261169
MD5 9181f3b491397bb65e461e8fca517062
BLAKE2b-256 25c8b835eb9f5e227a79f1f74d89fba898c1c0ebde7a10aea80855e813cb1cfa

See more details on using hashes here.

File details

Details for the file equinor_libres-8.0.0b0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-8.0.0b0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 932.3 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for equinor_libres-8.0.0b0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e01decd7fb6e604dd6e9bccd0f72b5c4764ec0b93a05a39f0b50ffe27e5aedca
MD5 fd7b6bef2495477b3c024b9cd71e15f8
BLAKE2b-256 0c3a7c2201c52f8f059cc088226c1dee89c45cac3a1e7824b2122bd6a7110d36

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