[FB] Using abc.ABC
instead of Protocol
for ModelProtocol
#13
Labels
feedback-requested
I would like somebody else's opinion on this
While working on redsun-simulator, it occurred to me that I'm starting to implement the same pattern for all devices, and that is using the
Configurable
protocol in all of them. I also added the possibility to read/change the configuration of theModelInfo
. Technically this should be an optionalProtocol
in bluesky (like everything else) but it might be worth to use as a baseline abstract class. It also would enforce the usage of a standardized__init__
function which seems more coherent with the usage.An alternative would also be using
ModelProtocol
as a mixin, but I fear it might be misunderstood.The text was updated successfully, but these errors were encountered: