tinyolap icon indicating copy to clipboard operation
tinyolap copied to clipboard

Rules Compiler

Open Zeutschler opened this issue 2 years ago • 0 comments

Rules need to be written in python. This requires 'real' Python coding and quite some boilerplate code. Sample:

@rule(cube="sales", trigger="delta %") def my_rule(c: Cell): return c["delta"] / c.plan["plan"]

Why not let users focus on the core rules itself and do the wrapping for them. This should not be too hard. sample:

["delta %"] = ["delta"] / ["plan"]

This would be a good bridge for users from TM/1 and alike. However, this will only work with simple one-line rules.

Zeutschler avatar May 05 '22 07:05 Zeutschler