Lines Matching refs:obj
127 elem = error.obj
151 variables = {k.obj.source.strip("$"): v for k,v in counter_example.items()}
181 def run(self, obj): argument
182 validator = ScenarioValidator(obj.get("schema_etree"), obj.get("datachecks_etree"))
183 obj.set("validator", validator)
189 def run(self, obj): argument
190 validator = ScenarioValidator(obj.get("schema_path"), obj.get("datachecks_path"))
191 obj.set("validator", validator)
200 def run(self, obj): argument
201 errors = obj.get("validator").check_syntax(obj.get(self.etree_tag))
202 obj.set("syntactic_errors", errors)
208 def run(self, obj): argument
209 … errors = obj.get("validator").check_semantics(obj.get("board_etree"), obj.get("scenario_etree"))
210 obj.set("semantic_errors", errors)
216 def run(self, obj): argument
217 board_name = obj.get("board_etree").getroot().get("board")
218 scenario_name = obj.get("scenario_etree").getroot().get("scenario")
220 nr_critical = len(obj.get("syntactic_errors"))
221 nr_error = len(list(filter(lambda e: e["severity"] == "error", obj.get("semantic_errors"))))
222 … nr_warning = len(list(filter(lambda e: e["severity"] == "warning", obj.get("semantic_errors"))))
231 obj.set("nr_all_errors", nr_critical + nr_error + nr_warning)
285 obj = PipelineObject(schema_path = args.schema, datachecks_path = args.datachecks)
286 validator_construction_pipeline.run(obj)
288 nr_all_errors = validate_one(validation_pipeline, obj, args.board, args.scenario)
290 nr_all_errors = validate_board(validation_pipeline, obj, args.board)
292 … nr_all_errors = validate_all(validation_pipeline, obj, os.path.join(config_tools_dir, "data"))