neuroscout/populate/extract.py
def _window_stim(cts, n):
    """ Return windowed slices from a ComplexTextStim
        Args:
            cts - _load_complex_text_stim_models
            n - size of window prior to current stimulus
        Output:
            list of ComplexTextStim with n elements
    """
    ix_high = n
    ix_low = 0
    slices = []
    while ix_high <= len(cts.elements):
        subset_stim = ComplexTextStim(elements=cts.elements[ix_low:ix_high])
        slices.append(subset_stim)
        ix_high += 1
        ix_low = ix_high - n
    return slices
 Return windowed slices from a ComplexTextStim
        Args:
            cts - _load_complex_text_stim_models
            n - size of window prior to current stimulus
        Output:
            list of ComplexTextStim with n elements
    
Return windowed slices from a ComplexTextStim
Args:
cts - _load_complex_text_stim_models
n - size of window prior to current stimulus
Output:
list of ComplexTextStim with n elements
Return windowed slices from a ComplexTextStim Args : cts - _load_complex_text_stim_models n - size of window prior to current stimulus Output : list of ComplexTextStim with n elements
def _window_stim(cts, n):
    ix_high = n
    ix_low = 0
    slices = []
    while ix_high <= len(cts.elements):
        subset_stim = ComplexTextStim(elements=cts.elements[ix_low:ix_high])
        slices.append(subset_stim)
        ix_high += 1
        ix_low = ix_high - n
    return slices
def _window_stim ( cts , n ) : ix_high = n ix_low = 0 slices = [ ] while ix_high <= len ( cts . elements ) : subset_stim = ComplexTextStim ( elements = cts . elements [ ix_low : ix_high ] ) slices . append ( subset_stim ) ix_high += 1 ix_low = ix_high - n return slices
Return windowed slices from a ComplexTextStim
Args:
cts - _load_complex_text_stim_models
n - size of window prior to current stimulus
Output:
list of ComplexTextStim with n elements
Return windowed slices from a ComplexTextStim Args : cts - _load_complex_text_stim_models n - size of window prior to current stimulus Output : list of ComplexTextStim with n elements
""" Return windowed slices from a ComplexTextStim
        Args:
            cts - _load_complex_text_stim_models
            n - size of window prior to current stimulus
        Output:
            list of ComplexTextStim with n elements
    """
cts
n