def _setup_selection_range(self, f_start=None, f_stop=None, t_start=None, t_stop=None, init=False):
<EOL>if init is True:<EOL><INDENT>if t_start is None:<EOL><INDENT>t_start = self.t_begin<EOL><DEDENT>if t_stop is None:<EOL><INDENT>t_stop = self.t_end<EOL><DEDENT>if f_start is None:<EOL><INDENT>f_start = self.f_begin<EOL><DEDENT>if f_stop is None:<EOL><INDENT>f_stop = self.f_end<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if f_start is None:<EOL><INDENT>f_start = self.f_start<EOL><DEDENT>if f_stop is None:<EOL><INDENT>f_stop = self.f_stop<EOL><DEDENT>if t_start is None:<EOL><INDENT>t_start = self.t_start<EOL><DEDENT>if t_stop is None:<EOL><INDENT>t_stop = self.t_stop<EOL><DEDENT><DEDENT>if t_stop >= <NUM_LIT:0> and t_start >= <NUM_LIT:0> and t_stop < t_start:<EOL><INDENT>t_stop, t_start = t_start,t_stop<EOL>logger.warning('<STR_LIT>')<EOL><DEDENT>if f_stop and f_start and f_stop < f_start:<EOL><INDENT>f_stop, f_start = f_start,f_stop<EOL>logger.warning('<STR_LIT>')<EOL><DEDENT>if t_start >= self.t_begin and t_start < self.t_end:<EOL><INDENT>self.t_start = int(t_start)<EOL><DEDENT>else:<EOL><INDENT>if init is False or t_start != None:<EOL><INDENT>logger.warning('<STR_LIT>'%self.t_begin)<EOL><DEDENT>self.t_start = self.t_begin<EOL><DEDENT>if t_stop <= self.t_end  and t_stop > self.t_begin:<EOL><INDENT>self.t_stop = int(t_stop)<EOL><DEDENT>else:<EOL><INDENT>if init is False or t_stop:<EOL><INDENT>logger.warning('<STR_LIT>'%self.t_end)<EOL><DEDENT>self.t_stop = self.t_end<EOL><DEDENT>if f_start >= self.f_begin and f_start < self.f_end:<EOL><INDENT>self.f_start = f_start<EOL><DEDENT>else:<EOL><INDENT>if init is False or f_start:<EOL><INDENT>logger.warning('<STR_LIT>'%self.f_begin)<EOL><DEDENT>self.f_start = self.f_begin<EOL><DEDENT>if f_stop <= self.f_end and f_stop > self.f_begin:<EOL><INDENT>self.f_stop = f_stop<EOL><DEDENT>else:<EOL><INDENT>if init is False or f_stop:<EOL><INDENT>logger.warning('<STR_LIT>'%self.f_end)<EOL><DEDENT>self.f_stop = self.f_end<EOL><DEDENT>self.selection_shape = self._calc_selection_shape()<EOL>
Making sure the selection if time and frequency are within the file limits.

        Args:
            init (bool): If call during __init__