parameters: (self, n_samples=100, tag_inc_updates=True)
docstring: Base fixture: set up flowgraph and parameters
docstring_summary: Base fixture: set up flowgraph and parameters
docstring_tokens: Base fixture : set up flowgraph and parameters
function: def _setUp(self, n_samples=100, tag_inc_updates=True):
          """Base fixture: set up flowgraph and parameters"""
          self.n_samples = n_samples  # number of IQ samples to generate
          self.f_in = uniform(high=0.5)  # input frequency
          self.f_shift = uniform(high=0.5) - \
              self.f_in  # rotator's starting frequency
  
          # Input IQ samples
          in_angles = 2 * np.pi * np.arange(self.n_samples) * self.f_in
          in_samples = np.exp(1j * in_angles)
  
          # Rotator's starting phase increment
          phase_inc = 2 * np.pi * self.f_shift
  
          # Flowgraph:
          #
          #                             /-> Vector Sink
          # Vector Source -> Rotator --/
          #                            \
          #                             \-> Tag Debug
          #
          self.tb = gr.top_block()
          self.source = blocks.vector_source_c(in_samples)
          self.rotator_cc = blocks.rotator_cc(phase_inc, tag_inc_updates)
          self.sink = blocks.vector_sink_c()
          self.tag_sink = blocks.tag_debug(gr.sizeof_gr_complex, "rot_phase_inc",
                                           "rot_phase_inc")
          self.tag_sink.set_save_all(True)
          self.tb.connect(self.source, self.rotator_cc, self.sink)
          self.tb.connect(self.rotator_cc, self.tag_sink)
function_tokens: def _setUp ( self , n_samples = 100 , tag_inc_updates = True ) : self . n_samples = n_samples # number of IQ samples to generate self . f_in = uniform ( high = 0.5 ) # input frequency self . f_shift = uniform ( high = 0.5 ) - self . f_in # rotator's starting frequency # Input IQ samples in_angles = 2 * np . pi * np . arange ( self . n_samples ) * self . f_in in_samples = np . exp ( 1j * in_angles ) # Rotator's starting phase increment phase_inc = 2 * np . pi * self . f_shift # Flowgraph: # #                             /-> Vector Sink # Vector Source -> Rotator --/ #                            \ #                             \-> Tag Debug # self . tb = gr . top_block ( ) self . source = blocks . vector_source_c ( in_samples ) self . rotator_cc = blocks . rotator_cc ( phase_inc , tag_inc_updates ) self . sink = blocks . vector_sink_c ( ) self . tag_sink = blocks . tag_debug ( gr . sizeof_gr_complex , "rot_phase_inc" , "rot_phase_inc" ) self . tag_sink . set_save_all ( True ) self . tb . connect ( self . source , self . rotator_cc , self . sink ) self . tb . connect ( self . rotator_cc , self . tag_sink )