You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will enable handlers to do some logic based on fully initialised controllers that currently needs to be done in update every time. For example, filtering a list of child attributes to create status from. By default initialise will do nothing.
This will be called in Controller.initialise (which should be moved to BaseController as it will be needed in sub controllers too). Controllers that already implement initialise (fastcs-odin) will then have to call super().initialise(). It will need to be called with the controller and the attribute it is attached to. This is intended to enable DiamondLightSource/fastcs-odin#21, so it probably makes sense to work on both issues at the same time to make sure the interface works.
Acceptance Criteria
Handlers can implement an initialise method that will be called with a initialised controller instance before the backend enters its run loop.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
This will enable handlers to do some logic based on fully initialised controllers that currently needs to be done in
update
every time. For example, filtering a list of child attributes to create status from. By defaultinitialise
will do nothing.This will be called in
Controller.initialise
(which should be moved toBaseController
as it will be needed in sub controllers too). Controllers that already implementinitialise
(fastcs-odin) will then have to callsuper().initialise()
. It will need to be called with the controller and the attribute it is attached to. This is intended to enable DiamondLightSource/fastcs-odin#21, so it probably makes sense to work on both issues at the same time to make sure the interface works.Acceptance Criteria
The text was updated successfully, but these errors were encountered: