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

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

equinor_libres-9.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl (863.8 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

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

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

equinor_libres-9.0.0b1-cp37-cp37m-macosx_10_9_x86_64.whl (863.8 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

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

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

equinor_libres-9.0.0b1-cp36-cp36m-macosx_10_9_x86_64.whl (863.8 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: equinor_libres-9.0.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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for equinor_libres-9.0.0b1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 58588e068613dc28c3ee884ac4dc9a15d5501b1d6a6076bd44de8eb7b5658c31
MD5 09daef6d993b800dc4054aa595c99fa7
BLAKE2b-256 a6985d38b6e8b9ce826c27ee048d83cf73e51d42c40054e9e74be5cc3a66cd76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-9.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 863.8 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for equinor_libres-9.0.0b1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8e3f1d3446244540e28096422f73dc0a65480f97dbe468a24141ad0f30776452
MD5 1066409b709a09a6498916a56df28bb4
BLAKE2b-256 e4771a01a9b12a1ce4b100391371e8fc48015f5bfa8c3af438a240bee75f901d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-9.0.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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for equinor_libres-9.0.0b1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dde2b9c2c405249c8f96daa0004f9c609f68ea364385c880d257ad364e229f50
MD5 8f959461a3c7e89a4eef3abd9aed85db
BLAKE2b-256 5a44b556bf3fb37f39e6f32ff23de66dd5eefd43b10ec5c1a2d4b6814eee6cd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-9.0.0b1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 863.8 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for equinor_libres-9.0.0b1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1bbac0f96e6d13956b457695f5f506c8fce0d48777d4d7c5d8e7602bf255dd87
MD5 02733e929fda58bfa8825d8735faef29
BLAKE2b-256 605272b62e04f09fb75dbe9c5b15ddc463f8d237bf914d42f4740c933f54cf0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-9.0.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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for equinor_libres-9.0.0b1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2a43b19449015317020e37ec00dfc7771c7836c2f9129e42d374416125ce0219
MD5 8b52a5e9058ace8a37de8b841418061c
BLAKE2b-256 04f28fadd3d9dc63e2f16a62f24b5756e7840009bd1a5979e656a3ab89ee9f12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-9.0.0b1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 863.8 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for equinor_libres-9.0.0b1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1776642fe840c0fd303b4634ae2cfedce554ea2423b6d3a2752b9ee8535c280d
MD5 4f030bcc08ff0c50483d494de0362774
BLAKE2b-256 ca184a5232cd315f1ec22872d9115c4a0181f58d3539015ac05e086e5b84e32b

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