core: Link a scanschema to it's actor
Closes #146 (closed)
Links the actor schema together with it's actor.
As result the time estimate can be computed from the actor if needed.
Here is the code i use for now
class TomoscanwithroiSchema(ComponentActorSchema):
...
def time_estimate(self, data):
try:
actor = self.get_actor()
return actor.time_estimate(**data)
except Exception:
_logger.error("Error while reading time estimate", exc_info=True)
return None
(cherry picked from commit fea07600)
Co-authored-by: Valentin Valls valentin.valls@esrf.fr