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

Uploaded CPython 3.14Windows x86-64

resdata-6.3.1-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.1-cp314-cp314-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

resdata-6.3.1-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.1-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

resdata-6.3.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

resdata-6.3.1-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.1-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.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.1-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.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8326dbdea62ab399d89d189a06770a4f6eaada47f1c8874a79bfef25111e5ad6
MD5 53c330e53d759b7a6d9800fed469f1f9
BLAKE2b-256 c0a68a7be3dcb053912322fb99575ebf6d03a3e9f8802975f133c57e733a87d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c388524be6820d92d3765adc252c45f1b2e52bfdb3680370423b6b48c2bd4124
MD5 a5b83ceb9d78fa91eea94f398679821d
BLAKE2b-256 0329ce1e8179d7033da598c92cd0f8908eb4719ff1b9dcf64e5503b23d9e72ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0db3c3e28fef43fb711a81aeb07a86eb769fe5db2f30eddb8e80a03301a08bd
MD5 68e5c14c91270658adb1fad2c8a5b24f
BLAKE2b-256 7e83d6c57f509f26c5a4e3a3972b4da60f4dcf08c63f71da56ec4a4c6c5e766f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.3.1-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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ef9834ef780ee4b6d7dfe141a0f365a9e0d387aced8b482116416053f9c76d15
MD5 3c749b87d128ffe28e91388bdd51a403
BLAKE2b-256 5d2a1de15e296582a61678cb85471dac58653ea1397223486afc48ea7aa81bf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f2f79788e3361b494663eed1039ce61e3b8742f2b49013ccf2107b205401b3d1
MD5 22c46cef663ebdf201744faa78bf4824
BLAKE2b-256 aa1f6ba4ff5b50107192a07567c84436c10a671c1e512ff307d88bde87dcfec5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d1402a1db2f0750783fdba67462bf074eb97085b7f7a6438eff46ba0e6e21aa
MD5 8cc2f50d84379c46eb80728c544ffd0a
BLAKE2b-256 dd6f4c1e480e174640b217ba9d5334f2bfd537e111fd59d2f97661619a0d7985

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.3.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 97d5ea58ced7ae4c41ca270e10953fdee81bc5e5849cfd4b59311dd552e3fd5f
MD5 e7d4546419546f48a5fee04145fb24be
BLAKE2b-256 12511745b157822b1576a5fb157dd92231448f29eb83f83fbc8b82c8c1d86694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 beef1ecbebde285eda2eba392f34dec2c04b04a2af78d3f98840740674cc335b
MD5 06f3d0a9b2c46c743293eb04616cee77
BLAKE2b-256 1ba54d2d9d19effc5fd9140287d19b70908a575be21cd6ba2c13cbb240533617

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04ff2b7df214a7dc6c6fcd833d9bdf73da49224a89d35573cef348745b1215b5
MD5 69f8a2d46b21953f7581b64122a2ed02
BLAKE2b-256 a978c6f4b8becdebd655d3afd8e9b988e84d4a4d9070d94224839824eb4db763

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.3.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 44abd6c752080041959ec7c4a3dce0fa8f472f8668a12cd8e0a64cda3f67f344
MD5 083b36620ab8089313b23c6c49276061
BLAKE2b-256 1fb35cca764d56524771f64c98a6b8aee800273fbb5c08da5b68662039ab4657

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3bd345911adc9bfbefae6e5288fe907d7263ebef2f421f588df400bd3208bc74
MD5 04678c6f613c272fda01b389750ed142
BLAKE2b-256 947c13171e038a4a64c5462d9907b0b0955bb25b6ea0c0f04e0b207e223540e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41ed5fb226b10a737086adc99a0095beeb187a11468785e3c729e85c9d1c4494
MD5 eace0e40f9b3dd3cd3c6b7ee95a6422d
BLAKE2b-256 e5be2800a53f9e9d9627f75c85054af2d9f9d497ece37dce605b922541f47a7e

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