diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-03-30 16:45:03 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-03-30 16:45:03 +0200 |
| commit | 059ccc84e12ce044e06e50d8bb1abff04f47e264 (patch) | |
| tree | 252b7322e8c7a25480036431cafdbda721430c64 | |
| parent | 678a001cdc4bcf251aa8c582afb58a4cc0759a36 (diff) | |
Simplify platform file
| -rw-r--r-- | esds/platform.py | 2 | ||||
| -rw-r--r-- | example/platform.yaml | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/esds/platform.py b/esds/platform.py index f878262..341ca13 100644 --- a/esds/platform.py +++ b/esds/platform.py @@ -167,7 +167,7 @@ class YAMLPlatformFile: if "arguments" in nodes: args=nodes["arguments"] for r in args: - for node_id in UnitsParser.node_range(r,self.default["node_count"]): + for node_id in UnitsParser.node_range(str(r),self.default["node_count"]): self.default["arguments"][node_id]=args[r] def parse_general(self): diff --git a/example/platform.yaml b/example/platform.yaml index 723b4b8..a549350 100644 --- a/example/platform.yaml +++ b/example/platform.yaml @@ -29,11 +29,9 @@ nodes: implementations: - all sender.py # Node implementation arguments - # arguments is a dictionary where key are ranges of node and values are the arguments for - # these specific node ranges - arguments: { - "all": 2 - } + # arguments keys are ranges of nodes, and values are passed to the specified nodes + arguments: + all: 2 ##### Interfaces Section ##### interfaces: |
