-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Hi @nsmith-,
Thank you for your reply and sorry for a delayed response. I think new node type proposal sounds good. I'm proposing the name "Comparison" instead to be a bit consistent with CMSSW string parser, but we don't need to.
For the
Filternode, maybe we can addoperatoroption to use either logicalandor logicalorof theComparisonnodes. Since you can give bothtrue_valueandfalse_value, I think the nameSwitchnode might be better.class Comparison(Model): variable: str cmp: Literal[">", "<", ">=", "<=", "==", "!="] value: float class Switch(Model): nodetype: Literal["filter"] inputs: List[str] selections: List[Comparison] operator: Literal["and", "or"] true_value: Content false_value: ContentDo you think you can implement these? Otherwise, I can also take a look and try to implement these as well.
Originally posted by @patinkaew in #268
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request