Source code for pycif.plugins.obsoperators.standard.transforms.utils.init_entry

import copy
from . import add_default


[docs] def init_entry( self, all_transforms, backup_comps, mapper ): """Initialize the pipe entry (default attributes) for every transform. Iterates over a snapshot of the currently registered transforms and calls :func:`add_default.init_pipe_entry` on each of them, so that transforms added while iterating are not themselves re-processed. Args: self: The parent object (obs operator) holding the transform pipe. all_transforms: Namespace holding all registered transform instances. backup_comps: Backup of components used to restore/compare state. mapper: Dictionary mapping each transform id to its inputs/outputs/ precursors/successors metadata. """ ref_transforms = copy.deepcopy(all_transforms.attributes) for transform in ref_transforms: add_default.init_pipe_entry( self, all_transforms, backup_comps, mapper, transform, )