Skip to main content

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, 3.x which is compiled via CMake and ran using ctest.

Ensure that cmake and conan version 2 is installed.

#set up conan
conan profile detect
conan install -of build --build=missing . -o build_tests=True
cmake --preset=conan-release -DENABLE_ASAN=ON -DENABLE_UBSAN=ON


# Build project
cmake --build --preset=conan-release -j 8

# Run all tests
ctest --preset conan-release

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.

resdata-7.0.0b0-cp314-cp314-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.14Windows x86-64

resdata-7.0.0b0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

resdata-7.0.0b0-cp314-cp314-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

resdata-7.0.0b0-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

resdata-7.0.0b0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

resdata-7.0.0b0-cp313-cp313-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

resdata-7.0.0b0-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

resdata-7.0.0b0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

resdata-7.0.0b0-cp312-cp312-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

resdata-7.0.0b0-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

resdata-7.0.0b0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

resdata-7.0.0b0-cp311-cp311-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file resdata-7.0.0b0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: resdata-7.0.0b0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for resdata-7.0.0b0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2125407f913e517d5f1d1c11cdd095e478f04f6adb3f6b9df2eded1387c81c38
MD5 8bae9725e164e3d327ccd6d31a56df05
BLAKE2b-256 b4aaca73eebe1dbdfaad238e3306d735e4bef6ed28d6f5f2f915405e9c657813

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-7.0.0b0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ef4bbfbcc34c3e5e95116c480e792ec86f26bf4d170003d754adadc583e1a53d
MD5 44b8d6e6e4fc00701ce71e6138211d2e
BLAKE2b-256 eb7f480cf83795b700dac793f87fc40d63ef51c95abb11dac0ab80e624632a1a

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-7.0.0b0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 583506de3737d080e6248551ec5a4b2be134e307982d65d6df3e1e23696e79a2
MD5 fc85bfbab233b0e73d442ec6a8e68c62
BLAKE2b-256 8a1cbeb7e614f7f161d0efd680daff6868a3289b54832ce3d5a50a86c03f7ee0

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: resdata-7.0.0b0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for resdata-7.0.0b0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b5cc179e88c1a8b949343a384cb8d68d3c65654e2402d4864b5fcb32f134a110
MD5 b6e029cbda8c823e73a64547ac0dc28e
BLAKE2b-256 0e1303de6080aeb83ee510b0b53d15eb0a72e347bf344b031d80daf102a78ad8

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-7.0.0b0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f0e521b78002758b4a66c8906cdd557417fc59961df240324526b5dc227d60a6
MD5 7edbf4af7813a6e45bbcfdd5f5338f2a
BLAKE2b-256 4647e411279e9324bfd912ecda0b91a85bd50216cabf1a3bda9b38e7e00d7e90

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-7.0.0b0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0a8420832b09078b2f3f1344cad851bf1fe870fee0132f397b8db99f6e0ecd5
MD5 2925c7f2887a5d88908fd6358df412ba
BLAKE2b-256 cd6d37ffa6ac14b20d375800e3521bbc2399e0003120482f338c074600d81916

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: resdata-7.0.0b0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for resdata-7.0.0b0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 58d372b18f7c6cc3deb29c74d4e6fea2a911781e0e17de3b256b95d842f2efd0
MD5 e2acc8d36303b217c64246158bbbf07e
BLAKE2b-256 88ab77c083a3cefd622358941361a7c4c976b98e1305c000bd6bfed44a372be6

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-7.0.0b0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3af237d9539733f417f67226533440030261cd082cb0346ecee707361768343f
MD5 d72ea08521eddd1cd88c3ded59c9e249
BLAKE2b-256 7f2ef9d10cb98efc74c9486108c5e107574c0072a2e41abca739b1535305e6c3

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-7.0.0b0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7cf952f88e95a8a50182388d5f2330314ab518e7b3f62937a4854c202b9c06d2
MD5 86ad14697119a75c4845c8fe2661dd2a
BLAKE2b-256 20cda465d32693a904acf886b8c4cb6081000940b9ca6ccd5fde0ea5fff979d7

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: resdata-7.0.0b0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for resdata-7.0.0b0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1524472c45adf72dc9f360137a79166d1955bd27f602d639959fe53979101a35
MD5 5eb158f09f2f7d97aa9c62dfb8ff75cd
BLAKE2b-256 46df9739c48d242485b3fe29e119fb4458d3f2065adea314476bef29a11c8b11

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-7.0.0b0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2dbbc3be490705661e523a50b50dd037e4462e1b646110b4486509b42e333f4d
MD5 61ee6a27d0a85e43511712a5a3969e8b
BLAKE2b-256 ef89f7fa7ed5654e481e703172a6a15ec64f32c1cddd48e1e4fee515977b2598

See more details on using hashes here.

File details

Details for the file resdata-7.0.0b0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-7.0.0b0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9171f17c1091b48a4a81d1e9d6880f38b24d15370b6604098c0fe9496970c2d
MD5 5c47281699e45c452a4599f279afb68d
BLAKE2b-256 46af6e8676dff8f3db6654d5b87363889ee88459f827ffbc431537ce8d6f76af

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