atomiq.components¶
Submodules¶
Attributes¶
Classes¶
An atomiq Component |
|
Functions¶
|
Resolve class by name |
|
|
|
|
|
|
|
Package Contents¶
- atomiq.components.get_class_by_name(name, relative_path=None)[source]¶
Resolve class by name
- Parameters:
name -- (str) "%s.%s" % (module.name, class.name)
- Returns:
(class)
- class atomiq.components.Component(parent, identifier, debug_output=False, *args, **kwargs)[source]¶
Bases:
artiq.language.environment.HasEnvironmentAn atomiq Component
Every component in atomiq inherits from this class. It provides basic functionality for automatic and recursive building and initialization of components (prepare, build, prerun). It also takes care for joining kernel invariants along the inheritance tree.
Note
The arguments parent and identifier are automatically passed to the component object by the atomiq object builder.
- Parameters:
parent -- The parent context of the component. Usually this is the experiment that uses the component
identifier (artiq.language.types.TStr) -- A unique name to identify the component.
debug_output (artiq.language.types.TBool) -- Set whether the component should show debug output. Using this switch rather than the debug kernel logger can allow the compiler to not include the debug commands in the kernel code if the output is not needed.
- kernel_invariants¶
- experiment¶
- identifier¶
- debug_output = False¶
- core¶
- _kernel_invariants¶
- _prepare_done = False¶
- _build_done = False¶
- _hooks_done = []¶
- class atomiq.components.Remote(remote_reference, sync=False)[source]¶
- Parameters:
remote_reference (str)
sync (bool)
- remote_reference¶
- sync = False¶
- atomiq.components.heros¶
- atomiq.components.logger¶
- atomiq.components.components = None¶
- atomiq.components.suservo_replacements = []¶