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

Uploaded CPython 3.9macOS 10.9+ x86-64

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

Uploaded CPython 3.8macOS 10.9+ x86-64

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

Uploaded CPython 3.7mmacOS 10.9+ x86-64

equinor_libres-11.0.0b0-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.0b0-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-11.0.0b0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for equinor_libres-11.0.0b0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 210d9d6b4dc7c1aeb564a0452b84256bf3ac99d27269b0d7ba307f644b5a2862
MD5 81794d2533b89e3b5af8352139feabad
BLAKE2b-256 e63258add732c5352da9e8d5aeb5c8c9143bf10469f28e157395771b869bb495

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0b0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.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.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.0b0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 874171a46610d9293353fcdb25bb8500507ab7050b9158a5d1711dd54e8c213b
MD5 c5bd1c96a73e4dfd0ce2c8df1b917bd9
BLAKE2b-256 bcb83adb1b124a09d873405dc275e73e8aa2f51ee59f04bb4e5492ccd395111b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0b0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2737b8f97fd9cc2194c724ca90b0bb9834db8e3323170db50fd05890f1b72027
MD5 1a21c962f8713eb634ef9d54f95bcaab
BLAKE2b-256 c5e8aa78674e3c7d362e08b04ab1105bfc8e8bb69bfd166e799089a8e2804a0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0b0-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.10

File hashes

Hashes for equinor_libres-11.0.0b0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f3bcc9fce6d990fc840c81a172c081f0c192f79c2d005539cc66892735b69adc
MD5 bcebc74cfb5a073fb9f3d2b72b8582b2
BLAKE2b-256 3c5e3e1b09d803c59917be78b078a701429719922962e248a2ac278a3f3ed132

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0b0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 985224f337c7d644895adaae6ce9442f723c120780c548cf54c0634a391d4088
MD5 4485fd1e1c7c99c83557f9c3506e1b29
BLAKE2b-256 6d010458701180204aa590a5984568188db3b8d473a95df483f373e1f581cb5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0b0-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.10

File hashes

Hashes for equinor_libres-11.0.0b0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c8981dc6dd582e2e5aa01f96372aad8304ed703a50c980287f9e7f55e7a8240f
MD5 b8945a2b6b97e5c39b28b40797339f96
BLAKE2b-256 a3406807a2e4cdd9e8b81d643c064a366a6e071abc69048ba3200f4401b766db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0b0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f650b6bdc75c31b7615b1a6997fc84b42cc24599901fdc3528cb088849231391
MD5 147a690724e1cbe60adfbd2057614391
BLAKE2b-256 0b5c9315fc36bc55f927c0bcdfd5ad607f86b5ef137337bde7a221120bc0c7e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0b0-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.10

File hashes

Hashes for equinor_libres-11.0.0b0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 783227a68c88cd90419c3151673547c59f1660adea25c9288b4249aa08d1d88d
MD5 3d0ec046fd257e9d5d4c63fe68ccdb2c
BLAKE2b-256 a8a1d0294880268b39806f52ad668296100e01e0a9371942a61675d6ed8bb44a

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