diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-09-11 07:57:31 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-09-11 07:57:31 +0200 |
| commit | be1966b40fba00e374433d4b7d93598b0ca35223 (patch) | |
| tree | 0b067b5610360d083dc6a69777ae2fe052888a11 /esds | |
| parent | 4b3cc0aa4e8359b68341fb02d74e2c834e85ebcb (diff) | |
Minor changes
Diffstat (limited to 'esds')
| -rw-r--r-- | esds/helpers/platform.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/esds/helpers/platform.py b/esds/helpers/platform.py index bafd493..7d16756 100644 --- a/esds/helpers/platform.py +++ b/esds/helpers/platform.py @@ -98,11 +98,10 @@ class YAMLPlatformFile: self.parsing_error("Invalid interface type \""+interfaces[i]["type"]+"\"") is_wired=interfaces[i]["type"] == "wired" links=list() - if type(interfaces[i]["links"]) == list: - for link in interfaces[i]["links"]: - links.append(self.parse_link(link)) - else: - links.append(self.parse_link(interfaces[i]["links"])) + if type(interfaces[i]["links"]) != list: + self.parsing_error("Invalide type of links in interface "+i) + for link in interfaces[i]["links"]: + links.append(self.parse_link(link)) ##### Create network matrix BW=np.full((node_count,node_count),0) LAT=np.full((node_count,node_count),0) |
