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, 2.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 .
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.2.9-cp314-cp314-win_amd64.whl (815.5 kB view details)

Uploaded CPython 3.14Windows x86-64

resdata-6.2.9-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

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

resdata-6.2.9-cp314-cp314-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

resdata-6.2.9-cp313-cp313-win_amd64.whl (796.6 kB view details)

Uploaded CPython 3.13Windows x86-64

resdata-6.2.9-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

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

resdata-6.2.9-cp313-cp313-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

resdata-6.2.9-cp312-cp312-win_amd64.whl (796.6 kB view details)

Uploaded CPython 3.12Windows x86-64

resdata-6.2.9-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

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

resdata-6.2.9-cp312-cp312-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

resdata-6.2.9-cp311-cp311-win_amd64.whl (796.6 kB view details)

Uploaded CPython 3.11Windows x86-64

resdata-6.2.9-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

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

resdata-6.2.9-cp311-cp311-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: resdata-6.2.9-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 815.5 kB
  • 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.2.9-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d884425071bd23eb63c674bb7901d59f3ad37bc2a36dd313b771665794dbca83
MD5 2bc0def5d27e726c454f60b32e6664cc
BLAKE2b-256 27a63b68fe804af97a5dcc456ac1d786da764c3137a0d168d88f7363175e7d03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.9-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf970677ec39b1f58f9e27eea05ea342129f4004ebce40e3c49a0826ba466244
MD5 aa7cdd142cf94faa393703f010609ec1
BLAKE2b-256 abd5b46f8701decd45d3a1d77a5b6e6885086563a5d88827f7e5a135d68d99ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.9-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62d61e7d8dc44b698c1b2a9f226c4556657c2cdf1c07c1b70c518d4ae6eee8ca
MD5 c4591b6ea10c9a2c5340acb4c5b43143
BLAKE2b-256 0d94a0fbb2b770d19623a3e02d8cffd8ddd0e41554ad5aa07b718e2aa7515059

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.9-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 796.6 kB
  • 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.2.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2339adea9af0835e53714d62d69b38b9d99320a9c34bc1319e48d3448115a069
MD5 fa697af1bf58439df8d333d3d41b3fec
BLAKE2b-256 ab3bfb1ed52d3438685094a800bfff188fcf404ad770a0e9d84b5079493c6d4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.9-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6df4e2bfa9dd92de255c4f6138558e57ebee3baba477b6ab114962493dc1dfde
MD5 3e379f70669416873789b9e30ec0353a
BLAKE2b-256 3edb1f46428dab612fde36296f2240c53cf4116a73ac2f47595a5c95d47bcf85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0215d147bbbef29eee1d1d3f8bdbe61af3d4e08851470af64aac3c631e14c5e4
MD5 7f8acb255e8894d1c7df2f2d899aae0a
BLAKE2b-256 d25f4329f6fa2b475d607a9f78a2e230376b981d2aa9493ace0697c4d6c0922f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.9-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 796.6 kB
  • 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.2.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 47613095cf2c22ef40bffb93700f8336ad9909436d49f0ebecd58911e7b6f050
MD5 59f8bd743b02c3420ee3cbfb8ec4ae87
BLAKE2b-256 431b8eb22910948fccc52aeba26079231900256fa094ea342c804cdf0dad1f22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.9-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cfeb559622e54f594f14f10cec1ca97e72b17b1f03dcf7f1664b9b9d5f31521b
MD5 bd325814efeda29c880bf04e87a08dd1
BLAKE2b-256 a410e549702c6d2c25609bb7053851e722f102de497f7680537c3d3114368d4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea614440dc0c626e97f8a3bc9e8ecda834ec7f9c0232c0ebc84c1e86485b4dbb
MD5 c199f1e37ac485bd6703e89423e91ca0
BLAKE2b-256 8ae03baa35abb28efa98191c51cc66623c3655d49e7391de831d5407fd3668b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.9-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 796.6 kB
  • 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.2.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9c6113c0ca33150b6d234a2ba403da16fb5359d3e37e8a566ffcdfd21468a130
MD5 5d1997d6d97ca5c0b7236e8cd0bef60f
BLAKE2b-256 85ad4334a4754f545864ee5b079703debcebb4fd4cc0bf53b0b3345a222077b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.9-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c7dac96bc93e0141989b9b160feea565687a294e5b9248a76f1804520a370126
MD5 6dcc9b5528b6e988ea27ad1e5d5fa1bb
BLAKE2b-256 412a1f29a01a9d9606e71ea7f999a89b5b380825f6829ce0c1024d290b993f21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd1492b0a456129b06a233e7fa8fe861487dca255bae7528399e5d0b9ad4c2cd
MD5 eabe8cafc1d225367a01e7b8f214ccd9
BLAKE2b-256 fd116681e304460bef9a627a940874620923e3aaf1f4535e19b62f837e502381

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