> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# py_omdb

Load and inspect optiSLang OMDB files with Python:

```python theme={null}
from py_omdb import PyOMDB

omdb = PyOMDB("/path/to/my.omdb")

for param_name in omdb.get_parameter_names():
    print(param_name)

for best_design in omdb.get_best_designs():
    print(best_design.get_id())
```

## *class* py\_omdb.AttachedPath

#### \_\_init\_\_(arg2: [Path](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.Path))

#### *property* auto\_insert\_placeholders

Automatically detect the design directory format and replace it by a placeholder.

#### *property* path

Path to an external file.

#### *property* title

User-defined title.

## *class* py\_omdb.PyOMDB

#### \_\_init\_\_()

#### \_\_init\_\_(arg2: [Path](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.Path))

#### \_\_init\_\_(arg2: str)

#### *property* algorithm\_info

Structure providing information about the underlying algorithm that lead to the results.

#### attach\_file\_path(file: [AttachedPath](#py_omdb.AttachedPath))

#### attach\_file\_path(id: [UUID](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/id.md#id.UUID), file: [AttachedPath](#py_omdb.AttachedPath))

\[0] Attach a path to an external file.

\[1] Attach a path to an external file by id.

#### check\_consistency()

Must be called after changes to OMDB.

#### clear\_meta\_data()

Clear the monitoring meta data.

#### *property* criteria

Criteria contained in monitoring database

#### *property* design\_container

Design container contained in monitoring database

#### extract\_important\_parameter\_name\_list(, design\_set: str]) → [WStrList](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.WStrList)

#### get\_attached\_file\_paths() → dict

Return a dictionay with ids as keys and attached paths as values.

#### get\_best\_designs() → [PyOSDesignContainer](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/py_os_design.md#py_os_design.PyOSDesignContainer)

Get the best designs. Takes design activation state into account.

#### get\_best\_subspaces(, design\_set: str]) → [PyOSDesignPoint](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/py_os_design.md#py_os_design.PyOSDesignPoint)

#### get\_build\_date() → str

Return the build date of the application this database file has been created with.

#### get\_design\_duplication(arg2: [PyOSDesign](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/py_os_design.md#py_os_design.PyOSDesign)) → object

#### get\_design\_duplication(arg2: [HID](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/id.md#id.HID)) → object

#### get\_nominal\_design() → [PyOSDesign](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/py_os_design.md#py_os_design.PyOSDesign)

#### get\_parameter\_names() → [WStrList](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.WStrList)

#### get\_reference\_design() → [PyOSDesign](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/py_os_design.md#py_os_design.PyOSDesign)

#### get\_response\_names() → [WStrList](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.WStrList)

#### get\_signal\_names() → [WStrList](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.WStrList)

#### get\_surrogate\_info(, design\_set: str]) → [SurrogateInfoContainerList](#py_omdb.SurrogateInfoContainerList)

#### get\_surrogate\_info\_names(, design\_set: str]) → [WStrList](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.WStrList)

#### get\_version() → int

Return the version of the application this database file has been created with in the format 0xMMNNPP (MM = major, NN = minor, PP = maintenance).

#### get\_version\_str() → str

Return the version of the application this database file has been created with.

#### get\_version\_suffix() → str

Return the version suffix of the application this database file has been created with.

#### is\_design\_active(design: [PyOSDesign](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/py_os_design.md#py_os_design.PyOSDesign)) → bool

#### is\_design\_active(design: [HID](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/id.md#id.HID)) → bool

\[0] Returns whether a design is active.

\[1] Returns whether a design is active.

#### *property* parameter\_manager

Parameter manager contained in monitoring database

#### remove\_file\_path(id: [UUID](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/id.md#id.UUID))

Remove attached file path by id.

#### save\_to\_file(output: [Path](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.Path))

## *class* py\_omdb.PySurrogateInfo

#### \_\_init\_\_()

Raises an exception
This class cannot be instantiated from Python

#### get\_cop() → float

#### get\_important\_parameter\_names() → [WStrList](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.WStrList)

#### get\_name() → str

#### get\_params\_sorted\_by\_cop() → [WStrList](https://developer.synopsys.com/docs/optislang/optislang-python-api/2025-r2/modules/stdcpp_python_export.md#stdcpp_python_export.WStrList)

#### get\_response\_component\_name() → str

#### get\_single\_cop(parameter\_name: str) → float

#### get\_testing\_type() → [TestingType](#py_omdb.TestingType)

#### has\_cop() → bool

#### has\_single\_cop(parameter\_name: str) → bool

## *class* py\_omdb.SurrogateInfoContainerList

#### \_\_contains\_\_(arg2: object) → bool

#### \_\_delitem\_\_(arg2: object)

#### \_\_getitem\_\_(arg2: object) → object

#### \_\_init\_\_()

Raises an exception
This class cannot be instantiated from Python

#### \_\_iter\_\_() → object

#### \_\_len\_\_() → int

#### \_\_setitem\_\_(arg2: object, arg3: object)

#### append(arg2: object)

#### extend(arg2: object)

## *class* py\_omdb.TestingType

**Enumeration**

#### CROSSVALIDATION *= py\_omdb.TestingType.CROSSVALIDATION*

#### LEAVEONEOUT *= py\_omdb.TestingType.LEAVEONEOUT*

## py\_omdb.write\_cop\_matrix\_to\_file(omdb: PyOMDB, file: Path)

Write COP matrix from omdb to file.
