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.4-cp312-cp312-manylinux2014_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.12

opm-2024.4-cp311-cp311-manylinux2014_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.11

opm-2024.4-cp310-cp310-manylinux2014_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.10

opm-2024.4-cp39-cp39-manylinux2014_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.9

opm-2024.4-cp38-cp38-manylinux2014_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.8

opm-2024.4-cp37-cp37m-manylinux2014_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.7m

opm-2024.4-cp36-cp36m-manylinux2014_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.6m

Supported by

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