From 20ed78ea563544da2a0a4463f339491fd1fde096 Mon Sep 17 00:00:00 2001 From: Enrique Noriega Date: Tue, 5 Sep 2023 18:02:31 -0700 Subject: [PATCH] enoriega/issue432 (#443) Closes #432 --- skema/metal/model_linker/skema_model_linker/linkers/petrinet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skema/metal/model_linker/skema_model_linker/linkers/petrinet.py b/skema/metal/model_linker/skema_model_linker/linkers/petrinet.py index 5975537f783..5cd4798beb3 100644 --- a/skema/metal/model_linker/skema_model_linker/linkers/petrinet.py +++ b/skema/metal/model_linker/skema_model_linker/linkers/petrinet.py @@ -22,7 +22,7 @@ def _generate_linking_sources(self, elements: Iterable[JsonNode]) -> Dict[str, L for desc in descs: ret[f"{val['name'].strip()}: {desc}"] = val ret[val['name'].strip()] = val - elif name == "parameters": + elif name == "parameters" and 'id' in val: ret[val['id'].strip()] = val # elif name == "transitions": # if "description" in val: