MomentAlgorithm.target_generator

giant.relative_opnav.estimators.moment_algorithm:

MomentAlgorithm.target_generator(include_targets)

This method returns a generator which yields target_index, target pairs that are to be processed based on the input include_targets.

If include_targets is None then all targets are yielded in the scene. If it is a list of boolean values then only targets where the corresponding index in the list is True are yielded.

Parameters

include_targets (Optional[List[bool]]) – The targets to include in the estimation process

Return type

Iterator[Tuple[int, giant.ray_tracer.scene.SceneObject]]