Changing checklist quantity to criteria
Everything to be measured must be an official metric
Simple relational operation makes >, ==, < possible.
@@ -4324,7 +4324,7 @@ def schema_checklist(cfg, group='checklist'):
localcfg[standard][item]['rationale'] = {
'switch': f"-{emit_group}_rationale '{emit_switch}standard item <str>",
'require': None,
- 'type': 'str',
+ 'type': '[str]',
'lock': 'false',
'signature': None,
'defvalue': None,
@@ -4339,8 +4339,28 @@ def schema_checklist(cfg, group='checklist'):
"""
}
- localcfg[standard][item]['report'] = {
- 'switch': f"-{emit_group}_report '{emit_switch}standard item <file>'",
+ localcfg[standard][item]['criteria'] = {
+ 'switch': f"-{emit_group}_criteria '{emit_switch}standard item <float>'",
+ 'type': '[str]',
+ 'lock': 'false',
+ 'require': None,
+ 'signature': None,
+ 'defvalue': [],
+ 'shorthelp': f"{emit_help} item signoff criteria",
+ 'example': [
+ f"cli: -{emit_group}_goal '{emit_switch}ISO D000 errors==0'",
+ f"api: chip.set({emit_api},'ISO','D000','goal','errors==0')"],
+ 'help': f"""
+ Simple list of signoff criteria for {group} checklist item which
+ must all be met for signoff. Each signoff criteris consists of
+ a metric, a relational operator, and a valaue in the form.
+ 'metric op value'.
+ """
+ }
+
+ localcfg[standard][item]['report'] = {}
+ localcfg[standard][item]['report']['default'] = {
+ 'switch': f"-{emit_group}_report '{emit_switch}standard item type <file>'",
'type': '[file]',
'lock': 'false',
'copy': 'true',
@@ -4353,11 +4373,12 @@ def schema_checklist(cfg, group='checklist'):
'signature': [],
'shorthelp': f"{emit_help} item report",
'example': [
- f"cli: -{emit_group}_report '{emit_switch}ISO D000 my.rpt'",
- f"api: chip.set({emit_api},'ISO','D000','report','my.rpt')"],
+ f"cli: -{emit_group}_report '{emit_switch}ISO D000 bold my.rpt'",
+ f"api: chip.set({emit_api},'ISO','D000','report','hold', 'my.rpt')"],
'help': f"""
- Filepath to report(s) documenting the successful validation of
- the {group} checklist item."""
+ Filepath to report(s) of specified type documenting the successful
+ validation of the {group} checklist item for the.
+ """
}
localcfg[standard][item]['waiver'] = {
@@ -4381,22 +4402,6 @@ def schema_checklist(cfg, group='checklist'):
item."""
}
- localcfg[standard][item]['quantity'] = {
- 'switch': f"-{emit_group}_quantity '{emit_switch}standard item <float>'",
- 'type': 'float',
- 'lock': 'false',
- 'require': None,
- 'signature': None,
- 'defvalue': None,
- 'shorthelp': f"{emit_help} item quantity",
- 'example': [
- f"cli: -{emit_group}_quanity '{emit_switch}ISO D000 99.9'",
- f"api: chip.set({emit_api},'ISO','D000','quantity', '99.9')"],
- 'help': f"""
- Quantity specific to the checklist item {group}.
- """
- }
-
localcfg[standard][item]['step'] = {
'switch': f"-{emit_group}_step '{emit_switch}standard item <str>'",
'type': 'str',
