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-6.3.2-cp314-cp314-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.14Windows x86-64

resdata-6.3.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.9 MB view details)

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

resdata-6.3.2-cp314-cp314-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

resdata-6.3.2-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

resdata-6.3.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.9 MB view details)

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

resdata-6.3.2-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

resdata-6.3.2-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

resdata-6.3.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.9 MB view details)

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

resdata-6.3.2-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

resdata-6.3.2-cp311-cp311-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.11Windows x86-64

resdata-6.3.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.9 MB view details)

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

resdata-6.3.2-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file resdata-6.3.2-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.2-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.3 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-6.3.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 7e0539ab1a164a99d22cc52bac114022ead53722e12da9c868aeb63ad35bf84e
MD5 06dcb3a3914ab1a410a67aeffe528444
BLAKE2b-256 b3107880968ca4c2243af774b40e5f85bf88b3899afc2ec1242fec8a3c5e257a

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.3.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 813797df198630c88fb632890493eea531449a54daf25983d9b28edabac49ab7
MD5 aae27614c171b0323fbb0fba0e3aaedc
BLAKE2b-256 1166927319dcb3ebe76e8b0af077b64061a3f599aa3ec731044bd5b3c25de614

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.3.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a46a6583aa94127916ab1f267949c617930b28accb26972f11b1dcc283766e3a
MD5 486c5060b5b000ae4c92a4675e61c1c4
BLAKE2b-256 d6a3c9a78d1d2f32707ecff73aa367630b3e79b34e80e908127ea63dda6ad0b8

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.3 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-6.3.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3ac4cbd71155cfaf805f3b3806f36374e790b8bb517db44abdc11cee2bce9e2b
MD5 b0d053e38d0e9f1697fb1e5723832f69
BLAKE2b-256 22f0d5166f58a1c5fad8312d9f7ec12d22ad1d1472f13b0a9275231a13192c80

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.3.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2f4f79c95a87d3c3333e27e8e311c7568063c96b544d56bcebd9d9a928db1e9c
MD5 935e626d41a047701324bd163a35c0a3
BLAKE2b-256 f771847fd8da58c6189481c088c629b4fc08cc845d8d262aee37af5151f169ae

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.3.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3cd4495c6ead4bedc98f74067a92bd52b31a23ae49c4b34bfeb3a88477bfd26
MD5 664617f33f8fdf21082ab14e26d2c9b9
BLAKE2b-256 98d19b1b4ad997d99cffa3f12b5ea22049000a0ad7d52ed090f4aa912b57de94

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.3 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-6.3.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e21b59874de39d9b0983bdee0607939d7581b84b3744d7163cc64e3ba1fa448b
MD5 9a0ad6dcd4368168c44bf187004a7ff8
BLAKE2b-256 d0c057ebb38b0f62bcd02cc37e25ac9541d6dc8dfe589f74211d66a7e7e768e1

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.3.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 909be1b4a180933cab58152f0798e92148334584000ee0ff5b89697af65aecc5
MD5 a675340b76dc91dff6da672b6163e206
BLAKE2b-256 e4c1a841946a15fe581409abcd77b243d269ce07143daa53dd106b2f919919fd

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.3.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39492b7f97f5ac02950649f4a615dd35a78a860f4db6c5c5bd6cb6c13f5e39a2
MD5 6b7b5fe13ab805b6fb5e15943cb2a942
BLAKE2b-256 4e7842667893c0e966424508c4cf220d420805f98a4fe5cc0109bed4f454ced8

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.3 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-6.3.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5fc3512bf11dd442aca12b6e1668d6578a5978a13d1a5f874cb4bbec904a0828
MD5 2fe92941710289fa5fcaffdc9d9dac83
BLAKE2b-256 4c9b51d3f26bfeb988c625e991bb04d04368d662ea350796ff88c3115d26eef0

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.3.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e9adcda317f39ad4b89b6bd8c740918a40049f131f00b1dbac22a2362662026c
MD5 a8c748fcdb36f2d5d73194c8083d55e8
BLAKE2b-256 a1b0f73d90caad7e96b96f6393ebad83b52afee1e1cbd9f7d9dd7969e27b397e

See more details on using hashes here.

File details

Details for the file resdata-6.3.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cb6919007ebdaecaabdf137b0d0c4d35ef717956117717998f69b3f1ffcf60a
MD5 0d28affaf3991e99a42b5c1269911595
BLAKE2b-256 8fe1df262229a8a571ad715146715b00ca349b9488b125d6507617727aeb457c

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