Package for reading and writing the fortran result files from reservoir simulators
Project description
ResData
Python package for reading and writing the result files from reservoir simulators. The file types covered are the RESTART, INIT, RFT, Summary and GRID files in unified and non-unified, and formatted and unformatted.
ResData officially only supports Linux and macOS. It was initially developed as part of the ert project.
Using
ResData is available on PyPI and can be installed into a Python virtual environment with pip
:
pip install resdata
Building
ResData is a Python project with a C++ extension layer. Most of the functionality is implemented in C++ and uses cwrap for binding it to Python.
A C++17-compatible compiler, like GCC 8+ or Clang 11+ is required. Other C++ dependencies are brought in automatically by Conan during CMake compilation.
In a Python virtual environment, run:
# Fetch directly from GitHub
pip install git+https://github.com/equinor/resdata
# If git-cloned, install local directory in editable mode
pip install --editable .
Running tests
As this codebase contains both Python and C++ code, there are tests for both Python and C++.
Python tests
These tests use pytest and require that ResData is installed into a Python virtualenv in --editable
mode, as described in the Building section.
Ensure that pytest is installed and do the following to
# Install pytest
pip install pytest
# Run all tests in the python/tests directory
pytest python/tests
C++ tests
ResData uses a homegrown testing suite as well as Catch2, 2.x which is compiled via CMake and ran using ctest
.
Ensure that cmake
and conan
version 1 is installed.
# Generate CMake build files into `build/`
cmake -B build .
# Build project
cmake --build build
# Run all tests
ctest --test-dir build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for resdata-4.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8427143f59a8cbf48c667607e9da407e20671d31dbfe060a96ffd8c59fbb655 |
|
MD5 | 1831664b737e5207add5300ffd45b665 |
|
BLAKE2b-256 | 9db50055ce62a6c80cefa2191bf9250a829ea6e741bd6af880f50cced477497c |
Hashes for resdata-4.2.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a169012a0e2d236d69bc3b1526a772bb051fb8d047439b6a161af0cd2bbccc1c |
|
MD5 | 42cf2d81580a66a9ef60649aeec54285 |
|
BLAKE2b-256 | 5c65416948a75be1a7ff418779d2892123c808ecad3b77b0d59b251e9daa9fff |
Hashes for resdata-4.2.4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6d435debf3ec797ea6412a85cef1ea27a647ec1cdc847116e06d0021ca1c4f7 |
|
MD5 | 9ada61ced8243e893d4f928b389db686 |
|
BLAKE2b-256 | a92300882db752c73ba664a52171998ad2e8edb82daedf93f3244586f65e11ed |
Hashes for resdata-4.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20b4ed930a0f098e542a2b97b605592be39d8cbb9a2b36776068d6c1bd82bd43 |
|
MD5 | 5565d7abd54c6381abe0e3cf6c0be697 |
|
BLAKE2b-256 | 7fe476b4763aeec8ac2b986ae09905f108e809fb8088215c35d28b63c70bafd2 |
Hashes for resdata-4.2.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df4f01f96762f52360d0691e0c9e97e7c8f4df6a993e94de84aef4b360476e11 |
|
MD5 | 4066303ebae93f0c2437e3e62a3a82c6 |
|
BLAKE2b-256 | ad88303a3a9c0660e368c1694b13fd51e90c13929d30db10bf3357c09e2f74fd |
Hashes for resdata-4.2.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a2dcdebff0375e5de13abfedff4fd4e2960ca51416ba52fee8c45ea9898785 |
|
MD5 | d1aa4f8a080d35b5bf2121b7d095acd5 |
|
BLAKE2b-256 | bf744824e5d51a31f3ecc93a5e35d15366f6210684198b9bcaefa5cb726ee7fa |
Hashes for resdata-4.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b861fb79bfdcae78c6d6172dda6813219dc71da09dcbdfa063587432d486c054 |
|
MD5 | d337e310adea354c5c369da1775fb4f1 |
|
BLAKE2b-256 | bb5ccee9b3cd1d9d5016fa195adb4d51915daec9f7d76fd35e3f174cd659c4fc |
Hashes for resdata-4.2.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e5def40ea041a49cd72ec02b20c0c33c877bbd774f54ea079ad4cc56442c92f |
|
MD5 | 3ed4996270308a8529504c7fb83152e8 |
|
BLAKE2b-256 | 6c3a3f9673f45d9139c4faa255496af5a89cdf8d2db635fe946fc1d6e033dcea |
Hashes for resdata-4.2.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2daa62bb6754dd665d424499e7d76f12a087fdd686907e7a05a43406ea475698 |
|
MD5 | 1ac0bb646da0f1585f8fa237aea25c92 |
|
BLAKE2b-256 | 9464ee1249f17922412acc3af13b51cc4933ca5fbf5e49181d3b8999f170d40b |
Hashes for resdata-4.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 371eee8956bf898787dfbfb2bf5f1c054ddc73b7b04f5012fb06c5b7dbde2bf3 |
|
MD5 | 0aeeea9adf4f2cbe3ef7b509b72d9634 |
|
BLAKE2b-256 | a191f05e3bce934a57488100f713c2bd9d00e39fb668350ae730406d834518a1 |
Hashes for resdata-4.2.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 150c21cf8b7f0bc1b546a153de769a902fd1a30df8130142ae675a848e85d255 |
|
MD5 | 29ba622bd1772318fb0125edb5058c4f |
|
BLAKE2b-256 | 5306d193e980b8b2fbc7d99424ffd8a55c415547bc988a25130624458465bc02 |
Hashes for resdata-4.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4085f6c22f515edbf922aa1b3a964aa04b8a9384a1e95ed03bffb0d9f9dec7c |
|
MD5 | eb5771f78558cc02973a7b6fb92ac996 |
|
BLAKE2b-256 | b447b1ff25ab73ee0912c062ef616881ea2af4b34d9db1fec4c3751ff6c1d975 |
Hashes for resdata-4.2.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa2aa487e1ea7c81c3146937ef01b60d8d3d6abada066da73556f4cc264569b |
|
MD5 | e7cfeef74daa48b81624d370f012d7ed |
|
BLAKE2b-256 | af473652e12abe3ea5b114c7885f26da076f4318018f89c2e98d7c2e9efcd519 |