New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

opm

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opm

OPM-Common Python bindings

  • 2024.10
  • PyPI
  • Socket score

Maintainers
1

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
    

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc