(self, condition)
Sets up the image visualizer with what images to overlay if
        "overlay_initial_image" or "overlay_target_image" is pressed.
Sets up the image visualizer with what images to overlay if
        "overlay_initial_image" or "overlay_target_image" is pressed.
Sets up the image visualizer with what images to overlay if overlay_initial_image or overlay_target_image is pressed .
def set_image_overlays(self, condition):
        """
        Sets up the image visualizer with what images to overlay if
        "overlay_initial_image" or "overlay_target_image" is pressed.
        """
        if not config['image_on'] or not self._target_filename:
            return
        initial_image = load_data_from_npz(self._target_filename,
                config['image_overlay_actuator'], str(condition),
                'initial', 'image', default=None)
        target_image  = load_data_from_npz(self._target_filename,
            config['image_overlay_actuator'], str(condition),
                'target',  'image', default=None)
        self._image_visualizer.set_initial_image(initial_image,
                alpha=config['image_overlay_alpha'])
        self._image_visualizer.set_target_image(target_image,
                alpha=config['image_overlay_alpha'])
def set_image_overlays ( self , condition ) : if not config [ 'image_on' ] or not self . _target_filename : return initial_image = load_data_from_npz ( self . _target_filename , config [ 'image_overlay_actuator' ] , str ( condition ) , 'initial' , 'image' , default = None ) target_image = load_data_from_npz ( self . _target_filename , config [ 'image_overlay_actuator' ] , str ( condition ) , 'target' , 'image' , default = None ) self . _image_visualizer . set_initial_image ( initial_image , alpha = config [ 'image_overlay_alpha' ] ) self . _image_visualizer . set_target_image ( target_image , alpha = config [ 'image_overlay_alpha' ] )