def _get_window(start, end):
 from scipy.signal import hann
 window = (1 - np.r_[(hann(4)[:2], np.ones((np.abs((end - start)) - 4)), hann(4)[(-2):])].T)
 return window

def _get_window ( start , end ) : from scipy . signal import hann window = ( 1 - np . r_ [ ( hann ( 4 ) [ : 2 ] , np . ones ( ( np . abs ( ( end - start ) ) - 4 ) ) , hann ( 4 ) [ ( - 2 ) : ] ) ] . T ) return window
return window which has length as much as parameter start - end .