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

Uploaded CPython 3.14Windows x86-64

resdata-6.3.0-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.0-cp314-cp314-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

resdata-6.3.0-cp313-cp313-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

resdata-6.3.0-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

resdata-6.3.0-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11Windows x86-64

resdata-6.3.0-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.0-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.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: resdata-6.3.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.1 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.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 505de5f9c0f26d83f3a7832294cfa559cf6ad9eeb8210520a1b6b59d3a9646c7
MD5 7cecf4f25e3c5e125327f6f8a2a8437a
BLAKE2b-256 91db2ea018d95d02828b9994cbf86115bfe8fe17eeebdb2d973737a82ed7c449

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e8c4ed4a7f6523d85b421b82f5c45600f5447bfdf43ebd5c3a6b3281abeb4d1e
MD5 8d5ec307a4ab8d782f4fcd25b13fbec7
BLAKE2b-256 50a40abb583bbdbde5da5952bd40661e0013e28acff55818d1ef8a200962d3e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b80dd6b88cf112c0697be076f73b6f38b10351f89dcacf17207b3eb00e6069f7
MD5 90ea9c7d912bed74a6c8df9a52f79021
BLAKE2b-256 8cc18925dea838b363ac130018bb58e3ef574825bb3eed97023c689fa0248b46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.3.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.1 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.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 82a4803c3720541be1082529da9aa3cfe447a66940a6d634e3733393e55c0c25
MD5 18679e6ad5b090a144eabec412ce9f3e
BLAKE2b-256 95b12065b18c1a591864876a2dd342e7bb2aecf882dd5bd06501fd19ed0ba650

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 84890c7e8739f0ea756231ef35d3b94d29eccd98fe65af7a681cebb39cf117cb
MD5 4adec3025b288fc534bad75684981c16
BLAKE2b-256 0232f9a0f492f1c2c8253f732b4038e8d902f8c4dcf74b76b70f318a72f2d4e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d8aa835d619b731d30ba9a8d2214899e5995353dce9ad128d7d77aaa9f1cf39
MD5 15675198fa6fb90a62af20d72a1ec01c
BLAKE2b-256 67864a7f1a0ca6b1f7302a8f0aa5fb881df225df993faf414f0d1137af865312

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.3.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.1 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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cf4df77cff8f303864ca2cd78fa31c362827ac3ef14b9586b7ea7d1b99a3123b
MD5 2d5b6048e9b1ae75cbdb1bcb0d1a758b
BLAKE2b-256 519fb92ce518b1d7950ba356d380de8563ee6387d4b1e3c8b59e7f1b8097dd4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d654dcc75e2273dbd039940ddfab2cc34a860f246debdf4a18f0dc9ee16395ec
MD5 e09d294c0260f7d5eceaed2ef07e0cbd
BLAKE2b-256 9b454121c938869dbc59ba96922e5cecbec51d3fea7b6a482bd8f66dcd4aea21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da3bb19203de882fcf5cdbb3e070c1850a6756af3898b5ab27f7ebda0ee9ddb5
MD5 54e4dd808c8aa30700d7bbf40a5d00a0
BLAKE2b-256 5113eb58d2593e429071349bded10e5a8411c74de3308f5ddb37a5edd02d13c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.3.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.1 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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 82b6a364a8594b17824e5a6de1d2ef67b3b4b5723f396dce79938fc71708f231
MD5 23b89094d601dce7e00f9c25106f469e
BLAKE2b-256 402e42c444cc49760244b36485d5d3f2a8dacfbbf03f6f22370c19c6005e539e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4454f1c3387b4ba312fac2317f72fa016470f0ecc37f575967221668af5ae78
MD5 c08e930c0c3952e1fd53dd550c7d4e87
BLAKE2b-256 9c600c3c669267bc54a6591c1fbead04c15e403398efd59e12ce650386dc31ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fac26150b1236ecd833c7f8f142db6ad5c80df445c772cd8c9936a495b4051ec
MD5 44dce5ea2d8a070360e533fee028b99d
BLAKE2b-256 f895f8fb3b50038a15908a5efcd102155ac15f71dabbdfa112be851f6697a6cd

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