WIP: Idea for incorporating conditionals into canvases
CC @deep.chatterjee, @min-a.cho, @geoffrey.mo.
This is a concept for incorporating conditionals and branching into Celery canvases. Is this a good idea? Or the most appalling travesty in the history of humankind? You tell me. But this is what it would look like:
group(
check_vector.s('H1:DMT-DQ_VECTOR', 0b11),
check_vector.s('H1:GDS-CALIB_STATE_VECTOR', 0b11),
check_vector.s('L1:DMT-DQ_VECTOR', 0b11),
check_vector.s('L1:GDS-CALIB_STATE_VECTOR', 0b11)
)
|
group(
if_true.s()
|
gracedb.label.s('DQOK', graceid),
if_false.s()
|
gracedb.label.s('DQNO', graceid)
|
halt.s()
)