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

Uploaded CPython 3.9macOS 10.9+ x86-64

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

Uploaded CPython 3.8macOS 10.9+ x86-64

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

Uploaded CPython 3.7mmacOS 10.9+ x86-64

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

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0rc0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a5374956709a6342080ff2022fbea2ef701051870b0b58887b9d4d78f7ddfc39
MD5 94733d68bdf7b643459bd1a30ec01eb8
BLAKE2b-256 36a7306faa655f4ba347f7d1f9de7e4e6d04ed69f11f7a15b84a7d8ba0a504d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0rc0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 870.1 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for equinor_libres-11.0.0rc0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9bbd5912a5a6566dda5865c30e1a18cb2d881b12d38609fdc65ae3bb030df59a
MD5 c758db4db41c1f6cd53679aaf1c93307
BLAKE2b-256 18eed7f7159b82a9663ae840b9c1173f1c832406368ecb7c829b14fc36547f9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0rc0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d05db85abd544b468e2b122b96700a6ed1c194c94c2078dfe04b71eac912cad7
MD5 e5dd6433bf13d754423dfdde4768d8ff
BLAKE2b-256 df76aae403d3793a640fb78c54f3cf8d354f40bcde99aa57efa93d6d64850050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0rc0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 870.1 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for equinor_libres-11.0.0rc0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 59d384b6e8149da050723d5a63296cfa4b683f0872c03b0bda4ea9839adeeaff
MD5 3340df330aadc5333ec9d56e0fb4812c
BLAKE2b-256 8f70d7246fb3d1cce49021ab98e3f7ac709d0afcde7098942ee799e951bfef77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0rc0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 925507535a977d035905eab754fd2cba7e37ba24fd9a2bbb9b56b35091db2f54
MD5 ca2c6fe82819733bb1ed88dc1e6182cc
BLAKE2b-256 a9ec4106b43e96a729dffbd4b23b6f59d160f88298540662a4e858dca0c060cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 870.1 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for equinor_libres-11.0.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ae6b20b47545837caec3fc0c396cf028d59fea9894fdfa479b10ae88675272db
MD5 c61167f01b9955bbb2a2d0b3ee9f8fb7
BLAKE2b-256 94e4283b93209dedce5be9168883e9c38ea20c8055ba3f5cbb55773c26d74e18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for equinor_libres-11.0.0rc0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3a2b090447ee1aa042276b0429767118a247821d1c2f6e8dd82e77324edf5c60
MD5 ce4f7896fa0eb744aabc2d5ee6090e32
BLAKE2b-256 e0b42986c36445841b8179c6bdfb104aef26f4d0ca09c62e1b2df979ec172848

See more details on using hashes here.

File details

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

File metadata

  • Download URL: equinor_libres-11.0.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 870.1 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for equinor_libres-11.0.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 da7ed7358c728354298f096ae63e947e7501606e630f0712e4b8ae2e32132392
MD5 4153b71596f8b0ea6543f3af07039dd7
BLAKE2b-256 196c9ef5960c96e31cfee8c4346c071422acfecc54a5c2708337333b7fee5326

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