Skip to main content

OPM-Common Python bindings

Project description

This folder contains the Python bindings and code required for embedding python for the OPM-common module of the Open Porous Media project.

For the Python bindings, see the Python bindings of opm-simulators.

For embedded python code, see the documentation.

To enable tooltips for embedded python code (opm_embedded) for the editor VS Code:

  • Either: Install opm-common.

  • Or: Copy the file <opm-common-folder>/python/opm_embedded/__init__.pyi into the folder defined in variable python.analysis.stubPath of VS Code and rename it to opm_embedded.pyi.

    You can recreate this stub file by executing

     stubgen -m opmcommon_python -o . && cat opmcommon_python.pyi | sed "s/class Builtin:/current_ecl_state: EclipseState\ncurrent_report_step: int\ncurrent_schedule: Schedule\ncurrent_summary_state:\n\nclass Builtin:/" > opm_embedded.pyi
    

    in <opm-common-build-folder>/python/opm.

    This will copy the resulting stub file opmcommon_python.pyi to "opm_embedded.pyi" and add the lines

     current_ecl_state: EclipseState
     current_report_step: int
     current_schedule: Schedule
     current_summary_state: SummaryState
    

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

opm-2024.10-cp312-cp312-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.28+ x86-64

opm-2024.10-cp311-cp311-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

opm-2024.10-cp310-cp310-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

opm-2024.10-cp39-cp39-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

opm-2024.10-cp38-cp38-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

opm-2024.10-cp37-cp37m-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.28+ x86-64

opm-2024.10-cp36-cp36m-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.28+ x86-64

File details

Details for the file opm-2024.10-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2024.10-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b2ef65db95597abb1842ddf26e40f50bb5395e7acd26473dccc2a5fbf70dfaec
MD5 712aa0f2e8dcc26ca7306942843e24cf
BLAKE2b-256 a3e8ca29b0c8a19f12528b8823a04ebde63cc73eaae89074ed932d8d02371d10

See more details on using hashes here.

File details

Details for the file opm-2024.10-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2024.10-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4d37c05faf13175df5ba1e7c255fa4ffebf081542dff1de43063e6b2d2d3d72a
MD5 9755b42004b2069b7221494fb8867dcd
BLAKE2b-256 d3b8978b75d1b1785d74b437f2b0a53ecf4c542b2c4ff24845dbe17dd2ea1ea6

See more details on using hashes here.

File details

Details for the file opm-2024.10-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2024.10-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f4d2e917ed0a3154ce8a438f0d2c997ad6a7bedcd5111043a4db7cf4d6e8cf87
MD5 a84085e208a585b69678f897d9671f1e
BLAKE2b-256 2b48e98e8193f904aef630d001dd3052b91fe2ee28be506d924fc6fb59ecf5de

See more details on using hashes here.

File details

Details for the file opm-2024.10-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2024.10-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 26c9812f1287344c3743071ef1e5623cc1a4d106d7200b398e7ed04c03cf3256
MD5 b3b80cf9d536f65caa3285ee1b2e04a8
BLAKE2b-256 14b8cfee8d8acd0066c118816ab37a16de911e6c11d8249093b6defdb39223b6

See more details on using hashes here.

File details

Details for the file opm-2024.10-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2024.10-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 27894ca7f5b99c03821fecf67b5b4d05ecc2ea2dff710b3e41509b9f3640a4b0
MD5 2a2fa496abae59ccdd5c148c895fb64c
BLAKE2b-256 24ff7025f2db5a6c2ce5cb5ee99b31977d9607615926dd645e9d6e4e16c20439

See more details on using hashes here.

File details

Details for the file opm-2024.10-cp37-cp37m-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2024.10-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b5fe81288cda0b08f93564e4911330fc7f0962024fe759e338da6df36ec2cf4e
MD5 41400d715d904fcd240bb2293eb39622
BLAKE2b-256 863c5b584f89c45c087eb6b4597249b87c9ca9027fd199eaaa0f9aa10c195e22

See more details on using hashes here.

File details

Details for the file opm-2024.10-cp36-cp36m-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for opm-2024.10-cp36-cp36m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 65957cad6bd804bf3169646a5c449ea90811a4f3071eb6b655898fa6352a0fbd
MD5 eeab646a78412a764e8d1762060b79b8
BLAKE2b-256 eea350e29ccf3d38801eda82bb5ad80e5f8eec931a8b2d1d4cf796f2c705ccd7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page