Utilities/video_and_plotting/make_trials_clips.py
def prep_circles(self):
        """[Show some circles on the frame to show the total number of stimuli and the current displayed one,
            need to prepare the parameters for number of circles, size, position... ]
        """
        n_squares = len(self.stimuli)
        centers = np.linspace(20, self.frame_shape[1]-20, n_squares)

        complete_centers = [(int(c), int(self.frame_shape[0] - (self.frame_shape[0]*.95))) for c in centers]

        if len(centers)>1:
            radius = int(np.diff(centers)[0]/3)
        else: radius = 20
        if radius > 20: radius = 20
        self.stimuli_display_circles = [complete_centers, radius]
[Show some circles on the frame to show the total number of stimuli and the current displayed one,
            need to prepare the parameters for number of circles, size, position... ]
        
[Show some circles on the frame to show the total number of stimuli and the current displayed one,
need to prepare the parameters for number of circles, size, position...
[ Show some circles on the frame to show the total number of stimuli and the current displayed one need to prepare the parameters for number of circles size position ...
def prep_circles(self):
        n_squares = len(self.stimuli)
        centers = np.linspace(20, self.frame_shape[1]-20, n_squares)
        complete_centers = [(int(c), int(self.frame_shape[0] - (self.frame_shape[0]*.95))) for c in centers]
        if len(centers)>1:
            radius = int(np.diff(centers)[0]/3)
        else: radius = 20
        if radius > 20: radius = 20
        self.stimuli_display_circles = [complete_centers, radius]
def prep_circles ( self ) : n_squares = len ( self . stimuli ) centers = np . linspace ( 20 , self . frame_shape [ 1 ] - 20 , n_squares ) complete_centers = [ ( int ( c ) , int ( self . frame_shape [ 0 ] - ( self . frame_shape [ 0 ] * .95 ) ) ) for c in centers ] if len ( centers ) > 1 : radius = int ( np . diff ( centers ) [ 0 ] / 3 ) else : radius = 20 if radius > 20 : radius = 20 self . stimuli_display_circles = [ complete_centers , radius ]
[Show some circles on the frame to show the total number of stimuli and the current displayed one,
need to prepare the parameters for number of circles, size, position... ]
[ Show some circles on the frame to show the total number of stimuli and the current displayed one need to prepare the parameters for number of circles size position ... ]
"""[Show some circles on the frame to show the total number of stimuli and the current displayed one,
            need to prepare the parameters for number of circles, size, position... ]
        """
self