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
File details
Details for the file resdata-5.0.1-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c508b4ef2e398b740a5549fb9b2459c7802d3812e5a0797a62a8443f8e89089 |
|
MD5 | 8385ae9e28f7e36f53cf3e79693ca738 |
|
BLAKE2b-256 | 3ed50e087504bd6abec360940ba3f93142fe24ea39ccdcb883d4026a2e789065 |
File details
Details for the file resdata-5.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fb9f51e44d6c5ef74d0b007a071afea312217d5c4795acf35d67d7e11560754 |
|
MD5 | efe27dafaaa2b9a28305ef3575ee9955 |
|
BLAKE2b-256 | 0bf5df3faca292326eca6132df0cfc1a93fac2e96d23733758140598c3834843 |
File details
Details for the file resdata-5.0.1-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4d7a14ca873237896b04572aa54e6e24a2fb0606057c41e6a1eca81ec41b01c |
|
MD5 | edf24950efc99f5b31c08421d57ca103 |
|
BLAKE2b-256 | b81eaadd88cbd336d2c57ca59c5d6f9a1d3e5c3a9c82b530735fb1a84d620d14 |
File details
Details for the file resdata-5.0.1-cp312-cp312-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp312-cp312-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16d5d01ab3a616d119b0d7fdbbb0c41be444e5006ced8a36fcc4891693a9947c |
|
MD5 | ef1d9e143ce5180fae61f166acd14c37 |
|
BLAKE2b-256 | 0ad9407005407e29a1ae28af210ba32cd340bd0c8152011377915dad9fc7621f |
File details
Details for the file resdata-5.0.1-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4832779730a6be51449ac463ed4a8ef27f4263bafd3e2fa528f867d1516ce240 |
|
MD5 | 51b379a92c5572045262eebd321a944b |
|
BLAKE2b-256 | 5393e6990a8bece3eb1c7de32de86887095e106d6ececdb9cdc4c23456f4a4ee |
File details
Details for the file resdata-5.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca4d675ef054d038ed7ddf2260e6277b882c5f30b9996a7a62b28dbb3b1fbecc |
|
MD5 | 7c85e6d80a814030dfe8a52eac091be0 |
|
BLAKE2b-256 | 602a0db590a89049704b78ffef57bf29056de6f27c0b406eea8342b1225cc9bb |
File details
Details for the file resdata-5.0.1-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c75069e78ebd590733bf046e85e01550dac58f8325aa5d1b6b370f794fd535 |
|
MD5 | 4b4e0d91d03e1e7359e23329dff1cef8 |
|
BLAKE2b-256 | 14f33c5194b033e62df1b6d6b0f219fb15e27483bfe5fe0cb9baa5e193824197 |
File details
Details for the file resdata-5.0.1-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59e5e0bed96f451b79169333856dc1210f5e1a78a0debeb8a3fc615c92a27f0 |
|
MD5 | 2fb29a2a421ef0f82939c385db25730a |
|
BLAKE2b-256 | fdebde5a1a8d3a5bc0721c83bb005fd8e4da8471249028a06441812664392d94 |
File details
Details for the file resdata-5.0.1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c147312d444a7548dc960fac078363ad26410b69765814024f744d9c7cab5af4 |
|
MD5 | 2f6afe899e88b50114f0edb6685c1ac9 |
|
BLAKE2b-256 | 2fa8517df2619551c0cfb56cd8b65b1283b0faf90d234ab363ff2ff867923894 |
File details
Details for the file resdata-5.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7045a563048d6cc2f987057c16e5a3da6f6499ba8bc454cdba6da7595aca1cd |
|
MD5 | ff6d4781f00e558311fe2cbec52c4942 |
|
BLAKE2b-256 | ac98eb660a31c61b9d40dae18592d3f6db111c9cf2e95e579bd9bcf95a78995e |
File details
Details for the file resdata-5.0.1-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d743132ae54698a6e2dbe4feb86badb4d508fabd82ec6a31438f6f5b1eb209c |
|
MD5 | 4c8c7588a2d6fc00103968f595bdfeed |
|
BLAKE2b-256 | 7df55dc4e18500d3a1a5ac6e0d4869ed24a4a237340d344c1cd427a3be966927 |
File details
Details for the file resdata-5.0.1-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ac47535cb060b19adb0a70baf9323cd898a12e2a26b99c4d1bd133b90163d0a |
|
MD5 | c85f0299c57dd0c13129bd8d23272768 |
|
BLAKE2b-256 | d4339f1660a45d7b938462d0adce5c932ca9ffaefe8b6fe8444e45f5cf4b90bb |
File details
Details for the file resdata-5.0.1-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9eba0b9066bf746ffec2cb8ec632ea7273c4c522fdef7c486a043b99d4a1cb6 |
|
MD5 | 57c6c267581cbc424d3b733f56770670 |
|
BLAKE2b-256 | 838169255de696bb0f7199f89203a93d7fcd686c1d1b80010fc842df73eff3ab |
File details
Details for the file resdata-5.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 266406a603d0026d73d70b71efa3c6cbf91d9800f59f5e3a0cc0b1d5a29acbce |
|
MD5 | 4ece61cd251b295d4ead700427e4fc10 |
|
BLAKE2b-256 | 91e2f14763a6a80dda737d00c0879fab2c53ef8210a0662be921ef9113b23699 |
File details
Details for the file resdata-5.0.1-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438850bcc41c8cf784d39479343e037c016da3e1dc63961b0b8541a09fe313d2 |
|
MD5 | 165d44861f725ec07169c33c3c4bb90c |
|
BLAKE2b-256 | b7fbbe4b765db9eec1cd894f2c04ade24514b58a6d09c08720115b47321036a3 |
File details
Details for the file resdata-5.0.1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34dbd561844bdf3c95a1c13337cfa46691460d4a170808a3e253e25b7a4fb934 |
|
MD5 | e2077dcb508f05489da6a9fab44f659b |
|
BLAKE2b-256 | 5e93870d8832355301f5f5a4c895c6380f06c30e225222a9c9605d45b67568b2 |
File details
Details for the file resdata-5.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6800c1dd8b89e4d1e455f955cc508a550e29dbfae13c1b4df850a6442c04aa3 |
|
MD5 | 8a741dd5c15132bfb404bec4c10d1b66 |
|
BLAKE2b-256 | a1f6d2148ee3176e0fdfc8f1779915408059428787b203ec32a894d0200ba055 |
File details
Details for the file resdata-5.0.1-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: resdata-5.0.1-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f18470cadb8c443931324bd87cc6adb18ce5bc1663fc81cb0cc3663dde5ffb4a |
|
MD5 | eb544e564e88d66d262bda0412ee8ee1 |
|
BLAKE2b-256 | 6f674eb34db4999c45bfd128d1b34905f77fd7b0033ac3c9ede5366574eb6850 |