Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b

Parent Directory (gnuradio)

Kludge Summary of gnuradio/gnuradio-core

Total Kludges 104
Total Subdirs 16

All Directories within gnuradio/gnuradio-core

All Files within gnuradio/gnuradio-core

Kludge Snippets in gnuradio/gnuradio-core

gnuradio/gnuradio-core/src/lib/filter/gr_cpu_powerpc.cc

Category FIXME
Committer eb
Commit ID 2c8ea58e4d76f54c98d71d3fcc64bc29da490908
54        
55        bool
56        gr_cpu::has_altivec ()
57        {
58          return true;		// FIXME assume we've always got it
59        }
60        
61        bool
62        gr_cpu::has_armv7_a ()
				

gnuradio/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
323        #if 0
324        gr_fir_sss *
325        gr_fir_sysconfig_x86::create_gr_fir_sss (const std::vector<short> &taps)
326        {
327          // FIXME -- probably want to figure out best answer for Athlon and code
328          // add code to select it here...
329        
330          if (gr_cpu::has_sse2 ()){
331            cerr << ">>> gr_fir_sss: using SSE2\n";
				

gnuradio/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21         */
22        
23        /*
24         * FIXME.  This code is virtually identical to qa_gr_fir_?CC.cc
25         *   Kludge up some kind of macro to handle the minor differences.
26         */
27        
28        #ifdef HAVE_CONFIG_H
29        #include <config.h>
				

gnuradio/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21         */
22        
23        /*
24         * FIXME.  This code is virtually identical to qa_gr_fir_?CC.cc
25         *   Kludge up some kind of macro to handle the minor differences.
26         */
27        
28        #ifdef HAVE_CONFIG_H
29        #include <config.h>
				

gnuradio/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21         */
22        
23        /*
24         * FIXME.  This code is virtually identical to qa_gr_fir_?CC.cc
25         *   Kludge up some kind of macro to handle the minor differences.
26         */
27        
28        #ifdef HAVE_CONFIG_H
29        #include <config.h>
				

gnuradio/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21         */
22        
23        /*
24         * FIXME.  This code is virtually identical to qa_gr_fir_?CC.cc
25         *   Kludge up some kind of macro to handle the minor differences.
26         */
27        
28        #ifdef HAVE_CONFIG_H
29        #include <config.h>
				

gnuradio/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.cc

Category TODO
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
77        {
78          //assert (0 == noutput_items % d_align_interval);
79          unsigned ninputs = ninput_items_required.size();
80          for (unsigned int i = 0; i < ninputs; i++)
81            ninput_items_required[i] = std::max(noutput_items*d_nchan*2+ history() - 1,1024*d_nchan*2+ history() - 1);//TODO include the diffs found in determine input_items_required
82        }
83        
84        bool
85        gr_align_on_samplenumbers_ss::check_topology (int ninputs, int noutputs)
				

gnuradio/gnuradio-core/src/lib/general/gr_circular_file.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
64            if (d_fd < 0){
65              perror (filename);
66              exit (1);
67            }
68        #ifdef HAVE_MMAP	/* FIXME */
69            if(ftruncate (d_fd, size + HEADER_SIZE) != 0) {
70              perror (filename);
71              exit (1);
72            }
				

gnuradio/gnuradio-core/src/lib/general/gr_circular_file.h

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
26        /*
27         * writes input data into a circular buffer on disk.
28         *
29         * the file contains a fixed header:
30         *   0x0000:    int32 magic (0xEB021026)
31         *   0x0004:	int32 size in bytes of header (constant 4096)
32         *   0x0008:	int32 size in bytes of circular buffer (not including header)
33         *   0x000C:    int32 file offset to beginning of circular buffer
34         *   0x0010:    int32 byte offset from beginning of circular buffer to 
				

gnuradio/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
50          const gr_complex *in = (const gr_complex *) input_items[0];
51          short *out = (short *) output_items[0];
52        
53          for (int i = 0; i < noutput_items/2; i++){
54            *out++ = (short) lrintf(in[i].real());	// FIXME saturate?
55            *out++ = (short) lrintf(in[i].imag());
56          }
57          
58          return noutput_items;
				

gnuradio/gnuradio-core/src/lib/general/gr_fast_atan2f.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
128          REAL x_abs, y_abs, z;
129          REAL alpha, angle, base_angle;
130          int index;
131        
132          /* don't divide by zero! */		// FIXME could get hosed with -0.0
133          if ((y == 0.0) && (x == 0.0))
134            return 0.0;
135        
136          /* normalize to +/- 45 degree range */
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.h — 1

Category Kludge
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
33         * "director" feature to implement the magic.
34         * It's slow. Don't use it in a performance critical path.
35         *
36         * Override eval to define the behavior.
37         * Use calleval to invoke eval (this kludge is required to allow a
38         * python specific "shim" to be inserted.
39         */
40        class gr_feval_dd
41        {
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.h — 2

Category Kludge
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
61         * "director" feature to implement the magic.
62         * It's slow. Don't use it in a performance critical path.
63         *
64         * Override eval to define the behavior.
65         * Use calleval to invoke eval (this kludge is required to allow a
66         * python specific "shim" to be inserted.
67         */
68        class gr_feval_cc
69        {
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.h — 3

Category Kludge
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
89         * "director" feature to implement the magic.
90         * It's slow. Don't use it in a performance critical path.
91         *
92         * Override eval to define the behavior.
93         * Use calleval to invoke eval (this kludge is required to allow a
94         * python specific "shim" to be inserted.
95         */
96        class gr_feval_ll
97        {
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.h — 4

Category Kludge
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
117         * "director" feature to implement the magic.
118         * It's slow. Don't use it in a performance critical path.
119         *
120         * Override eval to define the behavior.
121         * Use calleval to invoke eval (this kludge is required to allow a
122         * python specific "shim" to be inserted.
123         */
124        class gr_feval
125        {
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.i — 1

Category Magic
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
23        
24        /*
25         * N.B., this is a _very_ non-standard SWIG .i file
26         *
27         * It contains a bunch of magic that is required to ensure that when
28         * these classes are used as base classes for python code,
29         * everything works when calling back from C++ into Python.
30         *
31         * The gist of the problem is that our C++ code is usually not holding
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.i — 2

Category Magic
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
37         * If you don't understand SWIG "directors" or the Python GIL,
38         * don't bother trying to understand what's going on in here.
39         *
40         * [We could eliminate a bunch of this hair by requiring SWIG 1.3.29
41         * or later and some additional magic declarations, but many systems
42         * aren't shipping that version yet.  Thus we kludge...]
43         */
44        
45        
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.i — 3

Category Magic
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
136          virtual void calleval();
137        };
138        
139        /*
140         * These are the ones to derive from in Python.  They have the magic shim
141         * that ensures that we're holding the Python GIL when we enter Python land...
142         */
143        
144        %inline %{
				

gnuradio/gnuradio-core/src/lib/general/gr_fft_vfc.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
32        #include <string.h>
33        #include <cstdio>
34        
35        
36        // FIXME after this is working, change to use native real to complex fft.
37        // It should run twice as fast.
38        
39        
40        
				

gnuradio/gnuradio-core/src/lib/general/gr_kludge_copy.h

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
33        /*!
34         * \brief output[i] = input[i]
35         * \ingroup misc_blk
36         *
37         * This is a short term kludge to work around a problem with the hierarchical block impl.
38         */
39        class gr_kludge_copy : public gr_sync_block
40        {
41          size_t		d_itemsize;
				

gnuradio/gnuradio-core/src/lib/general/gr_misc.h

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
27        
28        unsigned int 
29        gr_rounduppow2(unsigned int n);
30        
31        // FIXME should be template
32        void gr_zero_vector(std::vector<float> &v);
33        void gr_zero_vector(std::vector<double> &v);
34        void gr_zero_vector(std::vector<int> &v);
35        void gr_zero_vector(std::vector<gr_complex> &v);
				

gnuradio/gnuradio-core/src/lib/general/gr_mpsk_receiver_cc.cc

Category FIXME
Committer trondeau
Commit ID 28e086141aead2e43f958f0ae14d58cac557fa2d
118          for (unsigned i=0; i < ninputs; i++)
119            ninput_items_required[i] = (int) ceil((noutput_items * d_omega) + d_interp->ntaps());
120        }
121        
122        // FIXME add these back in an test difference in performance
123        float
124        gr_mpsk_receiver_cc::phase_error_detector_qpsk(gr_complex sample) const
125        {
126          float phase_error = 0;
				

gnuradio/gnuradio-core/src/lib/general/gr_nco.h

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
33         * \ingroup misc
34         */
35        
36        
37        //FIXME  Eventually generalize this to fixed point
38        
39        template<class o_type, class i_type> 
40        class gr_nco {
41        public:
				

gnuradio/gnuradio-core/src/lib/general/gr_ofdm_sampler.cc

Category FIXME
Committer jcorgan
Commit ID 43819f0f33498239970b4479684f12aa080859e6
50        
51        void
52        gr_ofdm_sampler::forecast (int noutput_items, gr_vector_int &ninput_items_required)
53        {
54          // FIXME do we need more
55          //int nreqd  = (noutput_items-1) * d_symbol_length + d_fft_length;
56          int nreqd  = d_symbol_length + d_fft_length;
57          unsigned ninputs = ninput_items_required.size ();
58          for (unsigned i = 0; i < ninputs; i++)
				

gnuradio/gnuradio-core/src/lib/general/gr_prefs.h

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
28         * \brief Base class for representing user preferences a la windows INI files.
29         * \ingroup misc
30         *
31         * The real implementation is in Python, and is accessable from C++
32         * via the magic of SWIG directors.
33         */
34        
35        class gr_prefs
36        {
				

gnuradio/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
41        
42        std::vector<float> gr_pwr_squelch_cc::squelch_range() const
43        {
44          std::vector<float> r(3);
45          r[0] = -50.0;				// min	FIXME
46          r[1] = +50.0;				// max	FIXME
47          r[2] = (r[1] - r[0]) / 100;		// step size
48        
49          return r;
				

gnuradio/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
42        std::vector<float> gr_pwr_squelch_cc::squelch_range() const
43        {
44          std::vector<float> r(3);
45          r[0] = -50.0;				// min	FIXME
46          r[1] = +50.0;				// max	FIXME
47          r[2] = (r[1] - r[0]) / 100;		// step size
48        
49          return r;
50        }
				

gnuradio/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
41        
42        std::vector<float> gr_pwr_squelch_ff::squelch_range() const
43        {
44          std::vector<float> r(3);
45          r[0] = -50.0;				// min	FIXME
46          r[1] = +50.0;				// max	FIXME
47          r[2] = (r[1] - r[0]) / 100;		// step size
48        
49          return r;
				

gnuradio/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
42        std::vector<float> gr_pwr_squelch_ff::squelch_range() const
43        {
44          std::vector<float> r(3);
45          r[0] = -50.0;				// min	FIXME
46          r[1] = +50.0;				// max	FIXME
47          r[2] = (r[1] - r[0]) / 100;		// step size
48        
49          return r;
50        }
				

gnuradio/gnuradio-core/src/lib/general/gr_random.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
124        }
125        
126        /*
127         * Copied from The KC7WW / OH2BNS Channel Simulator
128         * FIXME Need to check how good this is at some point
129         */
130        
131        float gr_random::laplacian()
132        {
				

gnuradio/gnuradio-core/src/lib/general/gr_random.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
138        }
139        
140        /*
141         * Copied from The KC7WW / OH2BNS Channel Simulator
142         * FIXME Need to check how good this is at some point
143         */
144        
145          // 5 => scratchy, 8 => Geiger
146        
				

gnuradio/gnuradio-core/src/lib/general/gr_random.cc — 3

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
157         * Complex rayleigh is really gaussian I and gaussian Q
158         * It can also be generated by real rayleigh magnitude and
159         * uniform random angle 
160         * Adapted from The KC7WW / OH2BNS Channel Simulator
161         * FIXME Need to check how good this is at some point
162         */
163        
164        gr_complex gr_random::rayleigh_complex()
165        {
				

gnuradio/gnuradio-core/src/lib/general/gr_remez.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
849        
850          if (grid_density < 16)
851            punt ("gr_remez: grid_density is too low; must be >= 16");
852        
853          LOCAL_BUFFER (double, coeff, numtaps + 5);		// FIXME why + 5?
854          int err = remez (coeff, numtaps, numbands,
855        		   bands, response, weight, itype, grid_density);
856        
857          if (err == -1)
				

gnuradio/gnuradio-core/src/lib/general/gr_simple_correlator.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
105        {
106          d_state = ST_LOCKED;
107          int delta = sub_index (d_osi, d_transition_osi);
108          d_center_osi = add_index (d_transition_osi, delta/2);
109          d_center_osi = add_index (d_center_osi, 3);   // FIXME
110          d_bbi = 0;
111          fflush (stdout);
112          // fprintf (stderr, ">>> enter_locked  d_center_osi = %d\n", d_center_osi);
113        
				

gnuradio/gnuradio-core/src/lib/general/gr_simple_squelch_cc.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
90        std::vector<float>
91        gr_simple_squelch_cc::squelch_range() const
92        {
93          std::vector<float> r(3);
94          r[0] = -50.0;				// min	FIXME
95          r[1] = +50.0;				// max	FIXME
96          r[2] = (r[1] - r[0]) / 100;		// step size
97        
98          return r;
				

gnuradio/gnuradio-core/src/lib/general/gr_simple_squelch_cc.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
91        gr_simple_squelch_cc::squelch_range() const
92        {
93          std::vector<float> r(3);
94          r[0] = -50.0;				// min	FIXME
95          r[1] = +50.0;				// max	FIXME
96          r[2] = (r[1] - r[0]) / 100;		// step size
97        
98          return r;
99        }
				

gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc

Category FIXME
Committer eb
Commit ID 8b9d8612e3e32a8037782e027690e14b29254335
54          for (unsigned int i = 0; i < d_onum; i++)
55            d_ogrid[i] = ogrid[i];
56        
57          d_accel = gsl_interp_accel_alloc();
58          d_spline = gsl_spline_alloc(gsl_interp_cspline, d_inum);	// FIXME check w/ Frank
59        }
60        
61        gr_squash_ff::~gr_squash_ff()
62        {
				

gnuradio/gnuradio-core/src/lib/general/gr_vco.h

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
32         * \brief base class template for Voltage Controlled Oscillator (VCO)
33         * \ingroup misc
34         */
35        
36        //FIXME  Eventually generalize this to fixed point
37        
38        template<class o_type, class i_type> 
39        class gr_vco {
40        public:
				

gnuradio/gnuradio-core/src/lib/general/gri_fft.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
206            fftwf_free (d_inbuf);
207            throw std::runtime_error ("fftwf_malloc");
208          }
209        
210          // FIXME If there's ever a chance that the planning functions
211          // will be called in multiple threads, we've got to ensure single
212          // threaded access.  They are not thread-safe.
213          
214          gri_fftw_import_wisdom ();	// load prior wisdom from disk
				

gnuradio/gnuradio-core/src/lib/gengen/gr_noise_source_X.cc.t

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
84            for (int i = 0; i < noutput_items; i++)
85              out[i] = (@TYPE@)(d_ampl * d_rng.laplacian ());
86            break;
87            
88          case GR_IMPULSE:	// FIXME changeable impulse settings
89            for (int i = 0; i < noutput_items; i++)
90              out[i] = (@TYPE@)(d_ampl * d_rng.impulse (9));
91            break;
92        #endif
				

gnuradio/gnuradio-core/src/lib/gengen/gr_sig_source_X.cc.t — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
63        #if @IS_COMPLEX@	// complex?
64        
65          case GR_CONST_WAVE:
66            t = (gr_complex) d_ampl + d_offset;
67            for (int i = 0; i < noutput_items; i++)	// FIXME unroll
68              optr[i] = t;
69            break;
70            
71          case GR_SIN_WAVE:
				

gnuradio/gnuradio-core/src/lib/gengen/gr_sig_source_X.cc.t — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
141        #else			// nope...
142        
143          case GR_CONST_WAVE:
144            t = (@TYPE@) d_ampl + d_offset;
145            for (int i = 0; i < noutput_items; i++)	// FIXME unroll
146              optr[i] = t;
147            break;
148            
149          case GR_SIN_WAVE:
				

gnuradio/gnuradio-core/src/lib/io/gr_file_sink.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
64            return noutput_items;		// drop output on the floor
65        
66          while (nwritten < noutput_items){
67            int count = fwrite (inbuf, d_itemsize, noutput_items - nwritten, d_fp);
68            if (count == 0)	// FIXME add error handling
69              break;
70            nwritten += count;
71            inbuf += count * d_itemsize;
72          }
				

gnuradio/gnuradio-core/src/lib/io/gr_oscope_sink_f.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
66          float	  tmp[gr_oscope_guts::MAX_CHANNELS];
67        
68          for (int i = 0; i < noutput_items; i++){
69        
70            // FIXME for now, copy the data.  Fix later if reqd
71            for (int ch = 0; ch < ni; ch++)	
72              tmp[ch] = ((const float *) input_items[ch])[i];
73        
74            d_guts->process_sample (tmp);
				

gnuradio/gnuradio-core/src/lib/io/gr_udp_sink.cc

Category FIXME
Committer Eric Blossom
Commit ID 99a39a4351ca250dcbeeface0ab7b9de6e301d49
221            hints.ai_protocol = IPPROTO_UDP;
222            char port_str[12];
223            sprintf( port_str, "%d", port );
224        
225            // FIXME leaks if report_error throws below
226            int ret = getaddrinfo( host, port_str, &hints, &ip_dst );
227            if( ret != 0 )
228              report_error("gr_udp_source/getaddrinfo",
229        		   "can't initialize destination socket" );
				

gnuradio/gnuradio-core/src/lib/io/gr_udp_source.cc — 1

Category FIXME
Committer Eric Blossom
Commit ID 99a39a4351ca250dcbeeface0ab7b9de6e301d49
128          hints.ai_flags = AI_PASSIVE;
129          char port_str[12];
130          sprintf( port_str, "%d", port );
131        
132          // FIXME leaks if report_error throws below
133          ret = getaddrinfo( host, port_str, &hints, &ip_src );
134          if( ret != 0 )
135            report_error("gr_udp_source/getaddrinfo",
136        		 "can't initialize source socket" );
				

gnuradio/gnuradio-core/src/lib/io/gr_udp_source.cc — 2

Category FIXME
Committer Eric Blossom
Commit ID 99a39a4351ca250dcbeeface0ab7b9de6e301d49
134          if( ret != 0 )
135            report_error("gr_udp_source/getaddrinfo",
136        		 "can't initialize source socket" );
137        
138          // FIXME leaks if report_error throws below
139          d_temp_buff = new char[d_payload_size];   // allow it to hold up to payload_size bytes
140        
141          // create socket
142          d_socket = socket(ip_src->ai_family, ip_src->ai_socktype,
				

gnuradio/gnuradio-core/src/lib/io/i2c_bitbang.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
136        i2c_bitbang::read (int addr, unsigned char *buf, int max_bytes)
137        {
138          d_io->lock ();
139        
140          // FIXME
141        
142          d_io->unlock ();
143          return -1;
144        }
				

gnuradio/gnuradio-core/src/lib/io/microtune_4702.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
168         */
169        bool 
170        microtune_4702::pll_locked_p ()
171        {
172          // FIXME
173          return true;
174        }
175        
176        /*!
				

gnuradio/gnuradio-core/src/lib/io/microtune_4937.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
131         */
132        bool 
133        microtune_4937::pll_locked_p ()
134        {
135          // FIXME
136          return true;
137        }
138        
139        /*!
				

gnuradio/gnuradio-core/src/lib/missing/getopt.c

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
175        
176        #ifdef	__GNU_LIBRARY__
177        /* We want to avoid inclusion of string.h with non-GNU libraries
178           because there are many ways it can cause trouble.
179           On some systems, it contains special magic macros that don't work
180           in GCC.  */
181        #include <string.h>
182        #define	my_index	strchr
183        #define	my_bcopy(src, dst, n)	memcpy ((dst), (src), (n))
				

gnuradio/gnuradio-core/src/lib/runtime/gr_block.h

Category Magic
Committer eb
Commit ID 1579bab2e5840e8f7e7918b7cabf250ca4fd259a
56        class gr_block : public gr_basic_block {
57        
58         public:
59          
60          //! Magic return values from general_work
61          enum {
62            WORK_CALLED_PRODUCE = -2,
63            WORK_DONE = -1
64          };
				

gnuradio/gnuradio-core/src/lib/runtime/gr_block_executor.cc

Category FIXME
Committer eb
Commit ID 2c8ea58e4d76f54c98d71d3fcc64bc29da490908
399            // If this is a source, it's broken.
400            if (d->source_p()){
401              std::cerr << "gr_block_executor: source " << m
402        		<< " produced no output.  We're marking it DONE.\n";
403              // FIXME maybe we ought to raise an exception...
404              goto were_done;
405            }
406        
407            // Have the caller try again...
				

gnuradio/gnuradio-core/src/lib/runtime/gr_hier_block2.cc

Category Magic
Committer eb
Commit ID 395e1fa650428899dee0f123cb7bf432732280c5
45                                       gr_io_signature_sptr output_signature)
46          : gr_basic_block(name, input_signature, output_signature),
47            d_detail(new gr_hier_block2_detail(this))
48        {
49          // This bit of magic ensures that self() works in the constructors of derived classes.
50          gnuradio::detail::sptr_magic::create_and_stash_initial_sptr(this);
51        }
52        
53        gr_hier_block2::~gr_hier_block2()
				

gnuradio/gnuradio-core/src/lib/runtime/gr_msg_accepter.cc

Category FIXME
Committer Eric Blossom
Commit ID 1181c2fe069075f9ceb3b66ed937115ff39aafa9
50            return;
51          }
52          gr_hier_block2 *p2 = dynamic_cast<gr_hier_block2 *>(this);
53          if (p2){
54            // FIXME do the right thing
55            return;
56          }
57        
58          throw std::runtime_error("unknown derived class");
				

gnuradio/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.cc

Category Kludge
Committer eb
Commit ID 02cd43b565615593f90bd08eb4e718a6ee649661
74        
75        void
76        gr_single_threaded_scheduler::run ()
77        {
78          // d_enabled = true;		// KLUDGE
79          main_loop ();
80        }
81        
82        void
				

gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 1

Category Kludge
Committer Tom Rondeau
Commit ID 54b396764a9fad91cbfd10f618e4faed1c8bafa2
112          CPPUNIT_ASSERT_EQUAL(tags3.size(), (size_t)8);
113          CPPUNIT_ASSERT_EQUAL(tags4.size(), (size_t)8);
114        
115        #if QA_TAGS_DEBUG
116          // Kludge together the tags that we know should result from the above graph
117          std::stringstream str0, str1, str2;
118          str0 << ann0->name() << ann0->unique_id();
119          str1 << ann1->name() << ann1->unique_id();
120          str2 << ann2->name() << ann2->unique_id();
				

gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 2

Category Kludge
Committer Tom Rondeau
Commit ID 77d778896b72379676d2b00e591f9bbb5f6fcc44
203          CPPUNIT_ASSERT_EQUAL(tags4.size(), (size_t)12);
204        
205        
206        #if QA_TAGS_DEBUG
207          // Kludge together the tags that we know should result from the above graph
208          std::stringstream str0, str1;
209          str0 << ann0->name() << ann0->unique_id();
210          str1 << ann1->name() << ann1->unique_id();
211        
				

gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 3

Category Kludge
Committer Tom Rondeau
Commit ID 4a63bc91ddceaa8ce9d14a3f714bd0cdc3e85128
296          CPPUNIT_ASSERT_EQUAL(tags3.size(), (size_t)8);
297          CPPUNIT_ASSERT_EQUAL(tags4.size(), (size_t)8);
298        
299        #if QA_TAGS_DEBUG
300          // Kludge together the tags that we know should result from the above graph
301          std::stringstream str0, str1, str2;
302          str0 << ann0->name() << ann0->unique_id();
303          str1 << ann1->name() << ann1->unique_id();
304          str2 << ann2->name() << ann2->unique_id();
				

gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 4

Category Kludge
Committer Tom Rondeau
Commit ID 8d84a2fc9a804b2248fe43c3d8b230ef99aebaa2
404          CPPUNIT_ASSERT_EQUAL(tags2.size(), (size_t)8);
405        
406        
407        #if QA_TAGS_DEBUG
408          // Kludge together the tags that we know should result from the above graph
409          std::stringstream str0, str1, str2;
410          str0 << ann0->name() << ann0->unique_id();
411          str1 << ann1->name() << ann1->unique_id();
412          str2 << ann2->name() << ann2->unique_id();
				

gnuradio/gnuradio-core/src/lib/swig/Makefile.am

Category FIXME
Committer eb
Commit ID cbe1628f2eb1a1a3c8b0b96a3b1334a039074def
58        ourpythondir = $(grpythondir)/gr
59        ourpython_PYTHON = gnuradio_core.py
60        
61        # ----------------------------------------------------------------
62        # FIXME As of swig 1.3.31, this still seems to be required...
63        # gnuradio_swig_bug_workaround.h : gnuradio_core_runtime.py $(srcdir)/gen-swig-bug-fix
64        #	$(PYTHON) $(srcdir)/gen-swig-bug-fix python/gnuradio_core_runtime.cc $@
65        
66        EXTRA_DIST += gen-swig-bug-fix
				

gnuradio/gnuradio-core/src/lib/swig/gr_swig_block_magic.i — 1

Category FIXME
Committer Eric Blossom
Commit ID 6b5c73eb36bb45fc214616104c0a6c675dbce538
44        #ifdef SWIGGUILE
45        #ifdef IN_GNURADIO_CORE		// normal behavior
46        %define _GR_SWIG_BLOCK_MAGIC_HELPER(PKG, BASE_NAME, FULL_NAME)
47        _GR_SWIG_BLOCK_MAGIC_HELPER_COMMON(PKG, BASE_NAME, FULL_NAME)
48        /* FIXME May want to add something here to get a friendlier printed representation */
49        %enddef
50        #else				// Don't strip PKG from name
51        %define _GR_SWIG_BLOCK_MAGIC_HELPER(PKG, BASE_NAME, FULL_NAME)
52        class FULL_NAME;
				

gnuradio/gnuradio-core/src/lib/swig/gr_swig_block_magic.i — 2

Category FIXME
Committer Eric Blossom
Commit ID c80fdf2897624d10123a35b1a19d150f3a5645c8
53        typedef boost::shared_ptr<FULL_NAME> FULL_NAME ## _sptr;
54        %template(FULL_NAME ## _sptr) boost::shared_ptr<FULL_NAME>;
55        %ignore FULL_NAME;
56        %rename(FULL_NAME) PKG ## _make_ ## BASE_NAME;
57        /* FIXME May want to add something here to get a friendlier printed representation */
58        %enddef
59        #endif
60        #endif
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2/__init__.py

Category Kludge
Committer trondeau
Commit ID 28e086141aead2e43f958f0ae14d58cac557fa2d
21        
22        import glob
23        import os.path
24        
25        # Semi-hideous kludge to import everything in the blksimpl2 directory
26        # into the gnuradio.blks2 namespace.  This keeps us from having to remember 
27        # to manually update this file.
28        
29        for p in __path__:
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/filterbank.py

Category FIXME
Committer jcorgan
Commit ID 37c779b0c6394a3cec53370beb3b5a95e898b66a
22        import sys
23        from gnuradio import gr, gru
24        
25        def _generate_synthesis_taps(mpoints):
26            return []   # FIXME
27        
28        
29        def _split_taps(taps, mpoints):
30            assert (len(taps) % mpoints) == 0
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 1

PyFlakes undefined name 'gru'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
65                if 0:
66                    print "btaps =", btaps
67                    print "ataps =", ataps
68                    global plot1
69                    plot1 = gru.gnuplot_freqz (gru.freqz (btaps, ataps), fs, True)
70        
71                deemph = gr.iir_filter_ffd(btaps, ataps)
72        	self.connect(self, deemph, self)
73        
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 2

PyFlakes undefined name 'gru'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
65                if 0:
66                    print "btaps =", btaps
67                    print "ataps =", ataps
68                    global plot1
69                    plot1 = gru.gnuplot_freqz (gru.freqz (btaps, ataps), fs, True)
70        
71                deemph = gr.iir_filter_ffd(btaps, ataps)
72        	self.connect(self, deemph, self)
73        
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 3

PyFlakes undefined name 'gru'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
144                if 0:
145                    print "btaps =", btaps
146                    print "ataps =", ataps
147                    global plot2
148                    plot2 = gru.gnuplot_freqz (gru.freqz (btaps, ataps), fs, True)
149        
150                preemph = gr.iir_filter_ffd(btaps, ataps)
151        	self.connect(self, preemph, self)
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 4

PyFlakes undefined name 'gru'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
144                if 0:
145                    print "btaps =", btaps
146                    print "ataps =", ataps
147                    global plot2
148                    plot2 = gru.gnuplot_freqz (gru.freqz (btaps, ataps), fs, True)
149        
150                preemph = gr.iir_filter_ffd(btaps, ataps)
151        	self.connect(self, preemph, self)
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 5

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
135        	gr.hier_block2.__init__(self, "fm_deemph",
136        				gr.io_signature(1, 1, gr.sizeof_float), # Input signature
137        				gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
138        				
139                # FIXME make this compute the right answer
140                
141                btaps = [1]
142                ataps = [1]
143        
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_rx.py

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
53        	gr.hier_block2.__init__(self, "nbfm_rx",
54        				gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
55        				gr.io_signature(1, 1, gr.sizeof_float))      # Output signature
56        
57                # FIXME audio_rate and quad_rate ought to be exact rationals
58                audio_rate = int(audio_rate)
59                quad_rate = int(quad_rate)
60        
61                if quad_rate % audio_rate != 0:
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_tx.py

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
48        	gr.hier_block2.__init__(self, "nbfm_tx",
49        				gr.io_signature(1, 1, gr.sizeof_float),      # Input signature
50        				gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
51                
52                # FIXME audio_rate and quad_rate ought to be exact rationals
53                audio_rate = int(audio_rate)
54                quad_rate = int(quad_rate)
55        
56                if quad_rate % audio_rate != 0:
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/pkt.py

Category FIXME
Committer trondeau
Commit ID 28e086141aead2e43f958f0ae14d58cac557fa2d
134                    raise ValueError, "Invalid access_code %r. Must be string of 1's and 0's" % (access_code,)
135                self._access_code = access_code
136        
137                if threshold == -1:
138                    threshold = 12              # FIXME raise exception
139        
140                self._rcvd_pktq = gr.msg_queue()          # holds packets from the PHY
141                self.correlator = gr.correlate_access_code_bb(access_code, threshold)
142        
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/standard_squelch.py — 1

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
27        	gr.hier_block2.__init__(self, "standard_squelch",
28        				gr.io_signature(1, 1, gr.sizeof_float), # Input signature
29        				gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
30            
31                self.input_node = gr.add_const_ff(0)          # FIXME kludge
32                
33                self.low_iir = gr.iir_filter_ffd((0.0193,0,-0.0193),(1,1.9524,-0.9615))
34                self.low_square = gr.multiply_ff()
35                self.low_smooth = gr.single_pole_iir_filter_ff(1/(0.01*audio_rate))   # 100ms time constant
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/standard_squelch.py — 2

Category Kludge
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
27        	gr.hier_block2.__init__(self, "standard_squelch",
28        				gr.io_signature(1, 1, gr.sizeof_float), # Input signature
29        				gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
30            
31                self.input_node = gr.add_const_ff(0)          # FIXME kludge
32                
33                self.low_iir = gr.iir_filter_ffd((0.0193,0,-0.0193),(1,1.9524,-0.9615))
34                self.low_square = gr.multiply_ff()
35                self.low_smooth = gr.single_pole_iir_filter_ff(1/(0.01*audio_rate))   # 100ms time constant
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/wfm_tx.py

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
45        	gr.hier_block2.__init__(self, "wfm_tx",
46        				gr.io_signature(1, 1, gr.sizeof_float),      # Input signature
47        				gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
48                
49                # FIXME audio_rate and quad_rate ought to be exact rationals
50                audio_rate = int(audio_rate)
51                quad_rate = int(quad_rate)
52        
53                if quad_rate % audio_rate != 0:
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/__init__.py

PyFlakes redefinition of unused '_RTLD_GLOBAL' from line 32
Committer jcorgan
Commit ID 64069fba5439f51aa3bd22ddc2756c3781784531
31        try:
32            from dl import RTLD_GLOBAL as _RTLD_GLOBAL
33        except ImportError:
34            try:
35        	from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
36            except ImportError:
37        	pass
38            
39        if _RTLD_GLOBAL != 0:
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/benchmark_filters.py

PyFlakes undefined name 'sys'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
58            parser.add_option("-d", "--decimation", type="int", default=1)
59            (options, args) = parser.parse_args()
60            if len(args) != 0:
61                parser.print_help()
62                sys.exit(1)
63        
64            ntaps = options.ntaps
65            total_input_size = options.total_input_size
66            block_size = options.block_size
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/gr_threading_24.py

PyFlakes redefinition of unused 'local' from line 703
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
701        
702        try:
703            from thread import _local as local
704        except ImportError:
705            from _threading_local import local
706        
707        
708        # Self-test code
709        
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_agc.py

Category FIXME
Committer eb
Commit ID f1c41f807cb29472d0924149e39d6ec8ad90e6a2
410                dst_data = dst1.data ()
411                self.assertComplexTuplesAlmostEqual (expected_result, dst_data, 4)
412        
413        
414            def test_100(self):        # FIXME needs work
415                ''' Test complex feedforward agc with constant input '''
416                input_data = 16*(0.0,) + 64*(1.0,) + 64*(0.0,)
417                expected_result = ()
418        
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py — 1

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
30            def tearDown(self):
31                pass
32        
33            def test_blks_import(self):
34                # make sure that this somewhat magic import works
35                from gnuradio import blks2
36        
37            def test_gru_import(self):
38                # make sure that this somewhat magic import works
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py — 2

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
34                # make sure that this somewhat magic import works
35                from gnuradio import blks2
36        
37            def test_gru_import(self):
38                # make sure that this somewhat magic import works
39                from gnuradio import gru
40        
41        
42        if __name__ == '__main__':
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_mute.py

PyFlakes redefinition of function 'test_unmute_cc' from line 75
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
77                expected_result = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
78                op = gr.mute_cc (False)
79                self.help_cc ((src_data,), expected_result, op)
80        
81            def test_unmute_cc (self):
82                src_data = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
83                expected_result = (0+0j, 0+0j, 0+0j, 0+0j, 0+0j)
84                op = gr.mute_cc (True)
85                self.help_cc ((src_data,), expected_result, op)
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
119                self.assertEqual(expected_result, result_data)
120        
121            def test_002_interp(self):          
122                taps = random_floats(31)
123                #src_data = random_floats(10000)  # FIXME the 10k case fails!
124                src_data = random_floats(1000)
125                interpolation = 3
126        
127                expected_result = reference_interp_filter(src_data, interpolation, taps)
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
143                                     (L2 - L1, len(taps), interpolation, len(src_data)))
144                    sys.stderr.write('  len(result_data) = %d  len(expected_result) = %d\n' %
145                                     (len(result_data), len(expected_result)))
146                #self.assertEqual(expected_result[0:L], result_data[0:L])
147                # FIXME check first 3 answers
148                self.assertEqual(expected_result[3:L], result_data[3:L])
149        
150            def test_003_interp(self):
151                taps = random_floats(31)
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 3

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
172                    sys.stderr.write('  len(result_data) = %d  len(expected_result) = %d\n' %
173                                     (len(result_data), len(expected_result)))
174                self.assertEqual(expected_result[0:L], result_data[0:L])
175        
176            # FIXME disabled.  Triggers hang on SuSE 10.0
177            def xtest_004_decim_random_vals(self):
178                MAX_TAPS = 9
179                MAX_DECIM = 7
180                OUTPUT_LEN = 9
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 4

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
205                                                 (len(result_data), len(expected_result)))
206                            self.assertEqual(expected_result[0:L], result_data[0:L])
207        
208        
209            # FIXME disabled.  Triggers hang on SuSE 10.0
210            def xtest_005_interp_random_vals(self):
211                MAX_TAPS = 9
212                MAX_INTERP = 7
213                INPUT_LEN = 9
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 5

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
237                                sys.stderr.write('delta = %2d: ntaps = %d interp = %d ilen = %d\n' % (L2 - L1, ntaps, interp, ilen))
238                                #sys.stderr.write('  len(result_data) = %d  len(expected_result) = %d\n' %
239                                #                 (len(result_data), len(expected_result)))
240                            #self.assertEqual(expected_result[0:L], result_data[0:L])
241                            # FIXME check first ntaps+1 answers
242                            self.assertEqual(expected_result[ntaps+1:L], result_data[ntaps+1:L])
243        
244        
245            def test_006_interp_decim(self):
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/top_block.py

Category Kludge
Committer eb
Commit ID 2c8ea58e4d76f54c98d71d3fcc64bc29da490908
29        #
30        # There is no problem that can't be solved with an additional
31        # level of indirection...
32        #
33        # This kludge allows ^C to interrupt top_block.run and top_block.wait
34        #
35        # The problem that we are working around is that Python only services
36        # signals (e.g., KeyboardInterrupt) in its main thread.  If the main
37        # thread is blocked in our C++ version of wait, even though Python's
				

gnuradio/gnuradio-core/src/python/gnuradio/gr_xmlrunner.py

PyFlakes redefinition of unused 'StringIO' from line 22
Committer Tom Rondeau
Commit ID 2933f69b5d7afe6cf044a0f6305d05d19e7570af
20        
21        try:
22            from StringIO import StringIO
23        except ImportError:
24            from io import StringIO
25        
26        
27        class _TestInfo(object):
28        
				

gnuradio/gnuradio-core/src/python/gnuradio/gru/__init__.py

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21        
22        import glob
23        import os.path
24        
25        # Semi-hideous kludge to import everything in the gruimpl directory
26        # into the gnuradio.gru namespace.  This keeps us from having to remember 
27        # to manually update this file.
28        
29        for p in __path__:
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 1

PyFlakes undefined name 'IzeroEPSILON'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
35                n += 1
36                temp *= temp
37                u *= temp
38                accum += u
39                if u >= IzeroEPSILON*sum:
40                    break
41            return accum
42        
43        def midm1(fft_size):
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 2

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
52        def rate(fft_size):
53            return 1.0/(fft_size >> 1)
54        
55        def expn(fft_size):
56            math.log(2.0)/(midn(fft_size) + 1.0)
57            
58        def hamming(fft_size):
59            window = []
60            for index in xrange(fft_size):
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 3

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
69        
70        def welch(fft_size):
71            window = [0 for i in range(fft_size)]
72            j = fft_size-1
73            for index in xrange(midn(fft_size)+1):
74                window[j] = window[index] = (1.0 - math.sqrt((index - midm1(fft_size)) / midp1(fft_size)))
75                j -= 1
76            return window
77        
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 4

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
77        
78        def parzen(fft_size):
79            window = [0 for i in range(fft_size)]
80            j = fft_size-1
81            for index in xrange(midn(fft_size)+1):
82                window[j] = window[index] = (1.0 - math.abs((index - midm1(fft_size)) / midp1(fft_size)))
83                j -= 1
84            return window
85        
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 5

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
87            mfrq = freq(fft_size)
88            angle = 0
89            window = [0 for i in range(fft_size)]
90            j = fft_size-1
91            for index in xrange(midn(fft_size)+1):
92                window[j] = window[index] = angle
93                angle += freq
94                j -= 1
95            return window
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 6

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
98            mfrq = freq(fft_size)
99            angle = 0
100            window = [0 for i in range(fft_size)]
101            j = fft_size-1
102            for index in xrange(midn(fft_size)+1):
103                cx = math.cos(angle)
104                window[j] = window[index] = (.34401 + (cx * (-.49755 + (cx * .15844))))
105                angle += freq
106                j -= 1
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 7

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
110            mfrq = freq(fft_size)
111            angle = 0
112            window = [0 for i in range(fft_size)]
113            j = fft_size-1
114            for index in xrange(midn(fft_size)+1):
115                cx = math.cos(angle)
116                window[j] = window[index] = (.21747 + (cx * (-.45325 + (cx * (.28256 - (cx * .04672))))))
117                angle += freq
118                j -= 1
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 8

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
122            mfrq = freq(fft_size)
123            angle = 0
124            window = [0 for i in range(fft_size)]
125            j = fft_size-1
126            for index in xrange(midn(fft_size)+1):
127                cx = math.cos(angle)
128                window[j] = window[index] = (.084037 + (cx * (-.29145 + (cx * (.375696 + (cx * (-.20762 + (cx * .041194))))))))
129                angle += freq
130                j -= 1
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 9

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
133        def exponential(fft_size):
134            expsum = 1.0
135            window = [0 for i in range(fft_size)]
136            j = fft_size-1
137            for index in xrange(midn(fft_size)+1):
138              window[j] = window[i] = (expsum - 1.0)
139              expsum *= expn(fft_size)
140              j -= 1
141            return window
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 10

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
143        def riemann(fft_size):
144            sr1 = freq(fft_size)
145            window = [0 for i in range(fft_size)]
146            j = fft_size-1
147            for index in xrange(midn(fft_size)):
148                if index == midn(fft_size):
149                    window[index] = window[j] = 1.0
150                else:
151                    cx = sr1*midn(fft_size) - index
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 11

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
144            sr1 = freq(fft_size)
145            window = [0 for i in range(fft_size)]
146            j = fft_size-1
147            for index in xrange(midn(fft_size)):
148                if index == midn(fft_size):
149                    window[index] = window[j] = 1.0
150                else:
151                    cx = sr1*midn(fft_size) - index
152                    window[index] = window[j] = math.sin(cx)/cx
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 12

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
147            for index in xrange(midn(fft_size)):
148                if index == midn(fft_size):
149                    window[index] = window[j] = 1.0
150                else:
151                    cx = sr1*midn(fft_size) - index
152                    window[index] = window[j] = math.sin(cx)/cx
153                j -= 1
154            return window
155        
				

gnuradio/gnuradio-core/src/tests/test_all.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
28        #include <qa_general.h>
29        #include <qa_filter.h>
30        // #include <qa_atsc.h>
31        
32        // FIXME add atsc back in.
33        
34        int 
35        main (int argc, char **argv)
36        {