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.3.0rc1-cp314-cp314-win_amd64.whl (958.1 kB view details)

Uploaded CPython 3.14Windows x86-64

resdata-6.3.0rc1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.5 MB view details)

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

resdata-6.3.0rc1-cp314-cp314-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

resdata-6.3.0rc1-cp313-cp313-win_amd64.whl (937.8 kB view details)

Uploaded CPython 3.13Windows x86-64

resdata-6.3.0rc1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.5 MB view details)

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

resdata-6.3.0rc1-cp313-cp313-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

resdata-6.3.0rc1-cp312-cp312-win_amd64.whl (937.8 kB view details)

Uploaded CPython 3.12Windows x86-64

resdata-6.3.0rc1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.5 MB view details)

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

resdata-6.3.0rc1-cp312-cp312-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

resdata-6.3.0rc1-cp311-cp311-win_amd64.whl (936.5 kB view details)

Uploaded CPython 3.11Windows x86-64

resdata-6.3.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.4 MB view details)

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

resdata-6.3.0rc1-cp311-cp311-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file resdata-6.3.0rc1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.0rc1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 958.1 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.3.0rc1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 1f99e914fa4df72a511dc9f5bfdb880374b89a4d2f792f657013f64ebcf2b782
MD5 0d7a9501577dedaffe8ab9c5753e596b
BLAKE2b-256 88a555ce8320641e4bf25ce47623bd0cdbf9ac7479fba645b9febcccc0c9361e

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.3.0rc1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a2ef1a002ca7ddbca8b2b0b5153e6c63daed95a5ba0e62e5943b6a11870afe2c
MD5 49d047e82ca69fac060e6a461b503585
BLAKE2b-256 cff5646c80f9edf8af49a4c2e052d5e52add2e080b47e530d7b4727a46715d3d

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.3.0rc1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 278fa6d21b7bb2552e73177b65e2e65187662eab0d8743947dd2a72b9a6f5ca4
MD5 dd024474f6896f1382883736da5a1e73
BLAKE2b-256 1a379d773e97955482f88df5feb76bc8470b7759b48e0db3d017fe5ba9d4c32f

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.0rc1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 937.8 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.3.0rc1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8118d89ab9c1f61088f25cfa816604c96af11a521f5bfcb652b57cf7e5a9ddfc
MD5 19d715326a13a9f8a8c89ef9c34ee421
BLAKE2b-256 299cf67548b6b4be1b39fae9263e72db98b305a1302e780d50471e8892a8e026

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.3.0rc1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f0255bffd9c413487ade1dacb5b5b28b932cb1530b78b036ec2350db8761b5f8
MD5 62cfc42e317220c1a561f2f2d78c6517
BLAKE2b-256 487ad0dc314b9fb3312d6e0bddecb166c03e5b6e61361139d9365900dea11c3c

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.3.0rc1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d18d42a800326c0635b1b25ba93096fdba839b9d243537a8ce7685e01ce75ff4
MD5 5b1958e3be741750c2a25e46e791d9dc
BLAKE2b-256 c8aa46821c8e7d25403fd992bb353fbcdb5afa6d7f35f32dd8a5b340a9d157b6

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.0rc1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 937.8 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.3.0rc1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 663e15b1bede9b41b1ddc924687e6d2f5be9e2206430de97898c68541ef32b8b
MD5 a7f5ec4873268ff89aa3ba3b23e75d0b
BLAKE2b-256 85023c8df1f2e5ba2fd9f2f3bf19f68fb5dd7be791246e48a30a87dac8581cb6

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.3.0rc1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8d76465367ce3be5d5c06d6c20ea960ce47aa93f8bd9f0fca0421cf6bb550348
MD5 fac4cb617afde6cebab83ebee9d59077
BLAKE2b-256 d5fc16ceaf49ef52a048989aba6490e9f44406c9cedc4a418a643f52c4f3b8e3

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.3.0rc1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7da3f4c57a3457c5be08ced7de7920c72866ea783395b59a4779a45b68df17c9
MD5 d984c8b43c770099f30118b57455399e
BLAKE2b-256 151db2da4440b7147c01992ce1b19f8f023b26f3619199e029c4157a79b5c48a

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.0rc1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 936.5 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.3.0rc1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e90e82153d6c009488e713dd9bdf118929b8c9820415d427d9dd17cc5fa88b76
MD5 9071f19999ae302d77e8ee091e2fd393
BLAKE2b-256 2bc1050819491c4166a153daa6e731ef2f1ec5ff6534222b411ee61eb87aa0e3

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.3.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e42d90bd27b2d4ec69edddf3b1a7be21abae5542139e91308e38aa45f0d902d2
MD5 7291d739679eb7ab9e4a202d1818100b
BLAKE2b-256 7aa73faba254d830f4470eb064d2585e895b87ad841d4b670db86a9b60ea89b0

See more details on using hashes here.

File details

Details for the file resdata-6.3.0rc1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.3.0rc1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c62be3bcfa6083c1616eb38e00ff9b9b2f85323cdd098c9086fd3aaf61d757d3
MD5 e0944bae4c35d199f66ddeb3a31a86f7
BLAKE2b-256 2cd83dde7438c3c66d01c975296f877932d32456774b8788ebd30df7819e7284

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