summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--esds/platform.py2
-rw-r--r--example/platform.yaml8
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: