mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-09 22:56:53 +00:00
Cleaning
This commit is contained in:
parent
33fffefd1d
commit
c3b03417f8
2 changed files with 5 additions and 2 deletions
|
@ -137,6 +137,8 @@ class YAMLPlatformFile:
|
||||||
if not str(nodes["count"]).isnumeric():
|
if not str(nodes["count"]).isnumeric():
|
||||||
self.parsing_error("node count should be a number")
|
self.parsing_error("node count should be a number")
|
||||||
self.default["node_count"]=nodes["count"]
|
self.default["node_count"]=nodes["count"]
|
||||||
|
else:
|
||||||
|
self.parsing_error("node count not provided")
|
||||||
if "implementations" in nodes:
|
if "implementations" in nodes:
|
||||||
if type(nodes["implementations"]) != list:
|
if type(nodes["implementations"]) != list:
|
||||||
self.parsing_error("nodes implementations should be a list of file path")
|
self.parsing_error("nodes implementations should be a list of file path")
|
||||||
|
@ -155,6 +157,8 @@ class YAMLPlatformFile:
|
||||||
count = len(nodes["implementations"])
|
count = len(nodes["implementations"])
|
||||||
if count > 1 and count != self.default["node_count"]:
|
if count > 1 and count != self.default["node_count"]:
|
||||||
self.parsing_error("If more than one implementation is specified, each node implementation should be provided ("+str(self.default["node_count"])+" in total)")
|
self.parsing_error("If more than one implementation is specified, each node implementation should be provided ("+str(self.default["node_count"])+" in total)")
|
||||||
|
else:
|
||||||
|
self.parsing_error("node implementation not provided")
|
||||||
|
|
||||||
|
|
||||||
def parse_general(self):
|
def parse_general(self):
|
||||||
|
|
|
@ -7,7 +7,6 @@ general:
|
||||||
debug: off
|
debug: off
|
||||||
interferences: on
|
interferences: on
|
||||||
|
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
count: 5
|
count: 5
|
||||||
implementations:
|
implementations:
|
||||||
|
|
Loading…
Add table
Reference in a new issue