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.0b1-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.0b1-cp39-cp39-macosx_10_9_x86_64.whl (869.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

equinor_libres-11.0.0b1-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.0b1-cp38-cp38-macosx_10_9_x86_64.whl (869.5 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

equinor_libres-11.0.0b1-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.0b1-cp37-cp37m-macosx_10_9_x86_64.whl (869.5 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

equinor_libres-11.0.0b1-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.0b1-cp36-cp36m-macosx_10_9_x86_64.whl (869.5 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0b1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 de9de8c6d38048083c1799510e17a0a273645239524a47aaaa0fe5a1a5b21301
MD5 6442300ead8cffec20b241b7bb8e4639
BLAKE2b-256 10757bbc5a91f8f35623c08c3e0d48be5237d77789601f90a700669ab4428a05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0b1-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.5 kB
  • Tags: CPython 3.9, 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.10

File hashes

Hashes for equinor_libres-11.0.0b1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f3eac2e94fd9b548f40454757f9d8d4dffe6f6a22dddcfb6f7ed996ae7a69cfb
MD5 80d00d983850a41e42bd8461c48ea786
BLAKE2b-256 a5a2b32df7ecf8657a18fc9720c6fc3c7f70056b269900526fca5fd48ef06d1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0b1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8364382495c15c5e8d89af5d793b2d59c31fab7fcd2b1892e6d1601526dbc4e5
MD5 a0db6f46f88f3343e7c18812e729df5e
BLAKE2b-256 b0af544f16330ba71da37705e842ab63dea643bead4d319ae6a28fc833f6711f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.5 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.10

File hashes

Hashes for equinor_libres-11.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c96103dc87f89d5bb86b9e5e5b49146d0573ba883764f0270d6cf7515c2acd9b
MD5 1b4522ea9cb0a321bcdcf26b34469303
BLAKE2b-256 78d2f66c5c1e554d957a372f52678e6ab7297e396efeeeb67c72c5acf6c2b6c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0b1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9e2a69d8f5506cdad1e5f997a404e314f67686042d8144b19eb7f8c25b1ee751
MD5 a357fa860e591a85a006d19d6a4d3c4d
BLAKE2b-256 83c150588ccd0cb2f5c6c71cca93985a8bd755ed57493712e888e241f15dceee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0b1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.5 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.10

File hashes

Hashes for equinor_libres-11.0.0b1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 99d6c6c9cf8c5411ce13fac41ac235afebf37455fb84ce091e78c63fc1cd52dc
MD5 d98cc75a7925ef6890e8889cc2d7c8dc
BLAKE2b-256 0cff90054a35dd1af53c0ba8fa7ca0338955a3740417f44f4b91df02e043bea0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0b1-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cde3b72827d664860cb39fc3fc8591c08b42bc0ecd452a21329518e29ae7c835
MD5 f54a2c1b72dd0068cb3e0bd533338958
BLAKE2b-256 a7dc218544e318305022df24a84dce3842e04af172186136ff91b940eef68b51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0b1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.5 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.10

File hashes

Hashes for equinor_libres-11.0.0b1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 eb24f83e81833cac63cd6597cab98c2ef4b70d40c4579789d24fdab582478a31
MD5 9a6bb0340d8040b09c5e86d6f6e7c066
BLAKE2b-256 ff46845c1cfee5c42ac6cd8e21ce93e1de6506c7b2dbffb03726ac3e023ac5d9

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