What is OMLPY?
An extension that enables you to call OML (Open Matrix Language) built-in and user-defined functions directly from Python within Altair products such as Compose, HyperMesh, HyperGraph, HyperView, and Inspire.
Extension is available starting in Compose 2025.1.
Key Features:
- Access all OML built-in functions from Python.
- Execute user-defined OML functions (from .oml files) and retrieve outputs in Python.
- Automatic data type mapping between Python and OML, including basic and extended types.
- Map OML class objects to Python class objects for streamlined integration.
- Demos are available in the Demo Browser after loading the extension.
How to?
- Load the Extension.
- Instantiate the OmlPy class in Python to start using OML functions.
2. Input arguments are automatically mapped from Python to OML data types; outputs are mapped back to Python.
Advance Functionality:
- Use the omlfunction method to run OML user defined functions from specified .oml file
2. OML errors are caught and displayed in python window with prefix “OML Error: ” exception.
OMLPY in Altair HyperWorks