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.10-cp314-cp314-win_amd64.whl (815.4 kB view details)

Uploaded CPython 3.14Windows x86-64

resdata-6.2.10-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.10-cp314-cp314-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

resdata-6.2.10-cp313-cp313-win_amd64.whl (796.5 kB view details)

Uploaded CPython 3.13Windows x86-64

resdata-6.2.10-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.10-cp313-cp313-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

resdata-6.2.10-cp312-cp312-win_amd64.whl (796.5 kB view details)

Uploaded CPython 3.12Windows x86-64

resdata-6.2.10-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.10-cp312-cp312-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

resdata-6.2.10-cp311-cp311-win_amd64.whl (796.5 kB view details)

Uploaded CPython 3.11Windows x86-64

resdata-6.2.10-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.10-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.10-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: resdata-6.2.10-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 815.4 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.10-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 68e1117967c5c40d45917bbbac8213f51281334d22db4e078d1a58339ef99dee
MD5 15405bb5d39ad567dbce73db72b111a3
BLAKE2b-256 d170b7fabf883980069291a6642722ea069f9cfea4cdaaf919a0e7fb7afc941e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.10-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 24a405cb44fdb2cf912aa43d0b3a4082e7249ded471a5def274c0a6aeff0b8a7
MD5 3106a558400fc9d6fa986d6d02b1bfd1
BLAKE2b-256 70694c1e318df356dccd4e87063a50009052b6a4dd20d70b4cd910a70a744648

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.10-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a1e371c9ab9d3509e48791cc7429f7cca2a2add3d0f249dc6cb8f2dcf82d332
MD5 a2654f76fab318141cc7078545a09b59
BLAKE2b-256 9d31f1164e2158f8e5c5d8eb566e674c891d4e0d4f2e8c62ae482c02abb62600

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.10-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 796.5 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.10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 04ae19b982fd65c18178bc42611fb01c4bb5f512fb6cf6f1103d337daf9c2917
MD5 666813e3ebf2180fa88247d3059d71ab
BLAKE2b-256 30d057843924c485ce3c8c56b74b767cd8b719538f053131732a4dc71a727bf5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.10-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8262fcf9a63ac5c213ca0c5c0ae5c16f5db561c8b368bcd15a69d38cf8612744
MD5 19a5f5c73818d0e054bac2e01e90046d
BLAKE2b-256 331f15fb4a9c55d3afc2480871f27a6aaa2e281c27d4d2ec4e6fbfdc75c32957

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.10-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b703feb95f94d2150da8c92c4cc4475d33228eaf66c6b12ffddb5227ab99420
MD5 706b0d9bba9f8dc63e95b433a3b4990b
BLAKE2b-256 d5b24a7a283160675f10ff92745babbf91835fa2974d5f7c1c4be5837d7b45b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.10-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 796.5 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.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 48c907162b2c2c6e9dd92e31dcfa4a7d135e0885b55fabd2eaa11595b48fbadf
MD5 1e520e3b0eb8dcab8f7b55d1011e6b54
BLAKE2b-256 a6ec556fa6a8b89b34e7f4f25933b24d7d6cd710b925c34476f018691cbad0d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 01f6a0287705c3860222353b53b40da33bfe8569c44f4d362890d1d30cab2091
MD5 613eb18110c93cc5f0c04bc7262683af
BLAKE2b-256 84c5e2bbc00e044a705bf63a9cdc5f58528eae438cf90a030ff4766edf0ec9d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de0acb711d18ca12c58d30dcecdc22ada6e687bcd023f007eb57f1eea8f07481
MD5 322c64f2854db2fa43045f9c214b8fff
BLAKE2b-256 d251ee8e3f0d9e46598fd790a538cab596fd768e49bd56dff2dcfbe02c18f846

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.10-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 796.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.2.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 74edfa55444d2f3667b81418b3dae008d5ae7c1a442d7ace91b6b85e28752a26
MD5 bb6b49bbf534d39ec60ad68f48ee604d
BLAKE2b-256 3f172084c8c141256f3133e444dff01684f35af3a653cc56e7a8962260748b73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fc451fdd77db751b28353c127b5cefe2b37e836a9668819690ca466e3120dcf8
MD5 e8c1bf8aa11c578bc5e1703539be5258
BLAKE2b-256 f85d2b0a3b4fc0390f073bcdf568582b4902d8856f4529ec3d21be705f3eaee8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fcc75d69b19315c54ef5881b4f055cbdd74c473e335fc486e17dd34a8fccb47
MD5 5d18d165416223a5cbcee0afd7d2fcd6
BLAKE2b-256 7139472623198f01e8a57fa2f4a2ced0d8c53f1d0c39eb46f52222d6f2b05da9

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