Skip to content

Commit 58f89fa

Browse files
committed
Fixed rule_configs to remove cps _write tag.
1 parent d7f56ca commit 58f89fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

p4pillon/config_reader.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414

1515
logger = logging.getLogger(__name__)
1616

17+
# A list of rule/handler specific configs in the YAML to be passed to a non-standard rule/handler.
18+
# The list contains tuples of a tag name (the string used to identify the parameters for this rule)
19+
# and the parameter type, e.g. dictionary, integer.
20+
# The tag in the YAML must have the same name as the rule for it to be processed
21+
# correctly by SharedNT.
22+
rule_configs = [("calc", dict)]
1723

1824
def parse_config_file(filename: str, server: Server | None = None) -> dict[str, BasePVRecipe]:
1925
"""
@@ -123,7 +129,6 @@ def process_config(pvname: str, pvdetails: dict[str, Any]) -> BasePVRecipe:
123129

124130
# Process configuration in the yaml specific to a supported rule
125131
# and add this to pvrecipe.rule_configs
126-
rule_configs = [("calc", dict), ("cps_write", dict)]
127132
for config, config_type in rule_configs:
128133
temp_config = pvdetails.get(config)
129134
if temp_config is not None and isinstance(temp_config, config_type):

0 commit comments

Comments
 (0)