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

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

equinor_libres-10.1.0b1-cp38-cp38-macosx_10_9_x86_64.whl (869.4 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

equinor_libres-10.1.0b1-cp37-cp37m-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

equinor_libres-10.1.0b1-cp37-cp37m-macosx_10_9_x86_64.whl (869.4 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

equinor_libres-10.1.0b1-cp36-cp36m-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

equinor_libres-10.1.0b1-cp36-cp36m-macosx_10_9_x86_64.whl (869.4 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file equinor_libres-10.1.0b1-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: equinor_libres-10.1.0b1-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.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for equinor_libres-10.1.0b1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6e7cac111989d78a5260ab66fa200909bcf587f484df708e9051aa02fa990348
MD5 7ebfbdd177540dba5af57dce6990ddfa
BLAKE2b-256 edaaaca45383fb2b3cc500262a501783bff1c0da10b0a77cf78be5228dff8398

See more details on using hashes here.

File details

Details for the file equinor_libres-10.1.0b1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-10.1.0b1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.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.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for equinor_libres-10.1.0b1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 df4372052e9bb372290d04799400087894c688d79656c26a59f6afc0521f2717
MD5 2d7788926f32fe8aa6c0d62ba06ff58f
BLAKE2b-256 ce7e746eedad88ebfbe1b4e71db5044c618903e5d056d27c7eb23d87d4197a2d

See more details on using hashes here.

File details

Details for the file equinor_libres-10.1.0b1-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: equinor_libres-10.1.0b1-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.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for equinor_libres-10.1.0b1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7e0cd6f53cb885c58fdf6343ad786b83dad0d677fa0ecf4fd278ed034846f42d
MD5 486888d06905b9878894e6e98cfbaed5
BLAKE2b-256 3ffd754140989319cb8ff008d855eeb8d31da9c2cd67de55e4b5031afb95b01b

See more details on using hashes here.

File details

Details for the file equinor_libres-10.1.0b1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-10.1.0b1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.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.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for equinor_libres-10.1.0b1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b101abe23937ddeff085c8886e11174c10a6480a75a6031da4edabcc85974896
MD5 5d32270ed550cd819a6bcaf940a7afc9
BLAKE2b-256 dc12a7f1a9be94831e13fdc77fe6b047875b2c73e8f2aa62cd2073a049398b59

See more details on using hashes here.

File details

Details for the file equinor_libres-10.1.0b1-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: equinor_libres-10.1.0b1-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.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for equinor_libres-10.1.0b1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f58a5976c8b1ac5be7ea3ed28678e3d7719c038fb568137d9e3f8c70eb2fe6c9
MD5 635dfe78c3037113975d466026d91360
BLAKE2b-256 b8b9c31abc6106eef6d430ab84ed38bdc5d97bc3023fa66a16c23c2689abf5c4

See more details on using hashes here.

File details

Details for the file equinor_libres-10.1.0b1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: equinor_libres-10.1.0b1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.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.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for equinor_libres-10.1.0b1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b013abd0e05446d5500506ce406c253fa21e7bda2cdf9e041dd0297a5b9b825a
MD5 0e2b5b17796301e3d737fd44dbf00649
BLAKE2b-256 cbc752818825cd3ae01aef274ec59b0f04c18d11c04e653299b11999dbe13913

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