driplineorg / dripline-python

python implementation of project8/dripline
Apache License 2.0
3 stars 6 forks source link

design a pattern for `check_on_set` #29

Open laroque opened 5 years ago

laroque commented 5 years ago

The set of checks one may want to do could get pretty sophisticated, it would be nice to have an abstraction layer so that it is easy/natural to extend (similar to the calibration decorator perhaps).

... we could use asteval to store a string just like for calibration, also using the decorator pattern to allow extra functions to be implemented and provided.