parameters: (self)
docstring: pretty simple (the carrier allocation here is not a practical OFDM configuration!)
docstring_summary: pretty simple (the carrier allocation here is not a practical OFDM configuration!)
docstring_tokens: pretty simple ( the carrier allocation here is not a practical OFDM configuration! )
function: def test_001_t(self):
          """
          pretty simple (the carrier allocation here is not a practical OFDM configuration!)
          """
          fft_len = 6
          tx_symbols = (1, 2, 3)
          #             ^ this gets mapped to the DC carrier because occupied_carriers[0][0] == 0
          pilot_symbols = ((1j,),)
          occupied_carriers = ((0, 1, 2),)
          pilot_carriers = ((3,),)
          sync_word = (list(range(fft_len)),)
          expected_result = sync_word[0] + [1j, 0, 0, 1, 2, 3]
          #                                                 ^ DC carrier
          src = blocks.vector_source_c(tx_symbols, False, 1)
          alloc = digital.ofdm_carrier_allocator_cvc(fft_len,
                                                     occupied_carriers,
                                                     pilot_carriers,
                                                     pilot_symbols, sync_word,
                                                     self.tsb_key)
          sink = blocks.tsb_vector_sink_c(vlen=fft_len, tsb_key=self.tsb_key)
          self.tb.connect(
              src,
              blocks.stream_to_tagged_stream(
                  gr.sizeof_gr_complex,
                  1,
                  len(tx_symbols),
                  self.tsb_key),
              alloc,
              sink)
          self.tb.run()
          self.assertEqual(sink.data()[0], expected_result)
function_tokens: def test_001_t ( self ) : fft_len = 6 tx_symbols = ( 1 , 2 , 3 ) #             ^ this gets mapped to the DC carrier because occupied_carriers[0][0] == 0 pilot_symbols = ( ( 1j , ) , ) occupied_carriers = ( ( 0 , 1 , 2 ) , ) pilot_carriers = ( ( 3 , ) , ) sync_word = ( list ( range ( fft_len ) ) , ) expected_result = sync_word [ 0 ] + [ 1j , 0 , 0 , 1 , 2 , 3 ] #                                                 ^ DC carrier src = blocks . vector_source_c ( tx_symbols , False , 1 ) alloc = digital . ofdm_carrier_allocator_cvc ( fft_len , occupied_carriers , pilot_carriers , pilot_symbols , sync_word , self . tsb_key ) sink = blocks . tsb_vector_sink_c ( vlen = fft_len , tsb_key = self . tsb_key ) self . tb . connect ( src , blocks . stream_to_tagged_stream ( gr . sizeof_gr_complex , 1 , len ( tx_symbols ) , self . tsb_key ) , alloc , sink ) self . tb . run ( ) self . assertEqual ( sink . data ( ) [ 0 ] , expected_result )