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

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

equinor_libres-10.1.0b0-cp38-cp38-macosx_10_9_x86_64.whl (869.0 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

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

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

equinor_libres-10.1.0b0-cp37-cp37m-macosx_10_9_x86_64.whl (869.0 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

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

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

equinor_libres-10.1.0b0-cp36-cp36m-macosx_10_9_x86_64.whl (869.0 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: equinor_libres-10.1.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.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.0b0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6f8c1faa916560e505fef58a5d532f76b259eb1b9d47b08dd4807c228294ce3a
MD5 173ad94703f839bc3e693ce90fc751a3
BLAKE2b-256 d03568341b5cf496583549ccf28ad180c80c40eab410af113075c5d6aefb98f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-10.1.0b0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.0 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.0b0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 815a27d2dd2880bc753a53eb2c38a3f11ba309b8415fd2d803057cc4355549c1
MD5 d9ade33ad7f98a1a58eb7cd66be5c50f
BLAKE2b-256 534a6c60372315e59d945c228d86a5b23d22f1368e03fee6d5cc1b804b15b0eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-10.1.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.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.0b0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 92019180455c60efb0580057f29b255fa534e391c46d9e15d6d6e0bf719ef1ea
MD5 e05479f981d142d881443d721b3dca37
BLAKE2b-256 0923f6e99e9800bda0121bb5af2cc251fa7e462b4faa7df3c3962dffb312703e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-10.1.0b0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.0 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.0b0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4b17bd26c46819f82f7640963697cfb3f9da4e6baa442e2c875fdc97d7e6d77d
MD5 0f67e1783880d2645b99c7ff8fceb0e2
BLAKE2b-256 70dd011dbf5549422e2eaae85a111d9648e72654ae18b610dc59f7110567e1c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-10.1.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.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.0b0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c2be7ae0fa2e7ee7d058edcc586cbe844d49eb4696deadeb2ca89d6e5c12851e
MD5 50d5d06e6d00ca076322121459867b5a
BLAKE2b-256 a50d3da93b7fab36a775a64acbf78c6dc6308358e149279c35700541747eb550

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-10.1.0b0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 869.0 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.0b0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 521b80bc02af1405ea7a4b3985432cf558f9438f2eef7309f66662c21e69132f
MD5 8d63c1387ac4518ed84d33bacdb53495
BLAKE2b-256 17c6da002a2d17f5e8bfca7ae8f49f34c9a1cf3c20ca1b267b6b9fa2893f6bbf

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