Closed myxie closed 5 months ago
This pull request adds support for SubGraphs in the translator, specifically handling SubGraphs with no InputApps. The changes ensure that SubGraphs are recognized and processed correctly, while ignoring the entire SubGraph construct if it has no InputApps. This update does not address the functionality of SubGraphs with InputApps, which may lead to undefined behavior if such SubGraphs are submitted for translation.
Files | Changes |
---|---|
daliuge-translator/dlg/dropmake/lg.py daliuge-translator/dlg/dropmake/dm_utils.py daliuge-translator/dlg/dropmake/lg_node.py daliuge-translator/dlg/dropmake/definition_classes.py |
Added support for SubGraphs in the translator, including recognition and processing of SubGraphs with no InputApps. |
This supports SubGraphs with no InputApps, which functionally ignores the entire SubGraph construct.
This does not address the functionality of sub-graphs with input apps, nor does it make any attempt to address the translation of those graphs; this may lead to undefined behaviour if a sub-graph with input apps is submitted for translation.
Summary by Sourcery
This pull request adds support for SubGraphs in the translator, specifically handling SubGraphs with no InputApps. It introduces a new property to identify SubGraph nodes and updates relevant functions to process these constructs.
is_subgraph
inlg_node.py
to identify SubGraph nodes.convert_construct
function indm_utils.py
to handle SubGraph constructs.