Map of merged variables, organized by target variable (read-only). Use ``merge_vars`` and ``unmerge_vars`` to update merged variables.
(self)
| 1613 | |
| 1614 | @property |
| 1615 | def merged_vars(self) -> Dict['variable.Variable', List['variable.Variable']]: |
| 1616 | """ |
| 1617 | Map of merged variables, organized by target variable (read-only). Use ``merge_vars`` and |
| 1618 | ``unmerge_vars`` to update merged variables. |
| 1619 | """ |
| 1620 | count = ctypes.c_ulonglong() |
| 1621 | data = core.BNGetMergedVariables(self.handle, count) |
| 1622 | |
| 1623 | result = {} |
| 1624 | for i in range(count.value): |
| 1625 | target = Variable.from_BNVariable(self, data[i].target) |
| 1626 | sources = [] |
| 1627 | for j in range(data[i].sourceCount): |
| 1628 | sources.append(Variable.from_BNVariable(self, data[i].sources[j])) |
| 1629 | result[target] = sources |
| 1630 | |
| 1631 | core.BNFreeMergedVariableList(data, count.value) |
| 1632 | return result |
| 1633 | |
| 1634 | @property |
| 1635 | def split_vars(self) -> List['variable.Variable']: |
nothing calls this directly
no test coverage detected