Allow ZC ports without elements

Change-Id: I7fd918c49c376abacf1de82ca64612b720a974ae
This commit is contained in:
Henrik Wahlqvist 2024-11-01 09:00:50 +01:00
parent 816553f1bc
commit 248ab888bf

@ -156,7 +156,7 @@ class ZCAL(BaseApplication):
"interface": port.get("interface")
}
else:
raise Exception(f"Port {port_name} has no element.")
ports_info[port_name] = {"direction": port.get("direction"), "interface": port.get("interface")}
self.composition_spec["ports"] = ports_info
@staticmethod