geojson_modelica_translator.model_connectors.couplings.utils.parse_diagram_commands

geojson_modelica_translator.model_connectors.couplings.utils.parse_diagram_commands(template_contents)

Returns a list of diagram commands parsed from the template modelica contents i.e. it will find any instances of {{ diagram.<cmd>.* }} in the template

Parameters:

template_contents – str, modelica template code

Returns:

list[DiagramCommand]