pytweezer.coordinators package

class pytweezer.coordinators.Coordinator(targets, conf)[source]

Bases: object

Base for an in-process device coordinator.

targets maps role to backend object; conf is the composite device’s config entry.

Parameters:
require_role(role)[source]

Return the backend registered under role, or raise a clear error.

The error names the roles the composite actually provides and how to add the missing one, since a coordinator/config role mismatch is otherwise an opaque KeyError deep in construction.

shutdown()[source]

Release anything the coordinator holds on its backends.

Called before the backends themselves are torn down. Default is a no-op; override to stop acquisitions, zero outputs, and so on.

Return type:

None

Submodules