Changeset 7536
- Timestamp:
- 02/01/08 09:48:00
- Files:
-
- gnuradio/trunk/gr-utils/src/python (modified) (1 prop)
- gnuradio/trunk/gr-utils/src/python/Makefile.am (modified) (2 diffs)
- gnuradio/trunk/gr-utils/src/python/README.plot (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/README)
- gnuradio/trunk/gr-utils/src/python/gr_plot_char.py (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/gr_plot_char.py) (1 diff)
- gnuradio/trunk/gr-utils/src/python/gr_plot_const.py (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/gr_plot_const.py) (1 diff)
- gnuradio/trunk/gr-utils/src/python/gr_plot_fft_c.py (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/gr_plot_fft_c.py) (1 diff)
- gnuradio/trunk/gr-utils/src/python/gr_plot_fft_f.py (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/gr_plot_fft_f.py) (1 diff)
- gnuradio/trunk/gr-utils/src/python/gr_plot_float.py (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/gr_plot_float.py) (1 diff)
- gnuradio/trunk/gr-utils/src/python/gr_plot_int.py (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/gr_plot_int.py) (1 diff)
- gnuradio/trunk/gr-utils/src/python/gr_plot_iq.py (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/gr_plot_iq.py) (1 diff)
- gnuradio/trunk/gr-utils/src/python/gr_plot_short.py (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/gr_plot_short.py) (1 diff)
- gnuradio/trunk/gr-utils/src/python/plot_data.py (moved) (moved from gnuradio/trunk/gnuradio-core/src/utils/gr_plot_data.py) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/trunk/gr-utils/src/python
- Property svn:ignore changed from Makefile Makefile.in to Makefile Makefile.in *.pyc
gnuradio/trunk/gr-utils/src/python/Makefile.am
r6287 r7536 20 20 # 21 21 22 include $(top_srcdir)/Makefile.common 23 22 24 EXTRA_DIST = \ 23 $(bin_SCRIPTS) 25 $(bin_SCRIPTS) \ 26 README.plot 27 28 ourpythondir = $(grpythondir) 29 30 ourpython_PYTHON = \ 31 plot_data.py 24 32 25 33 bin_SCRIPTS = \ 34 gr_plot_char.py \ 35 gr_plot_const.py \ 36 gr_plot_fft_c.py \ 37 gr_plot_fft_f.py \ 38 gr_plot_float.py \ 39 gr_plot_int.py \ 40 gr_plot_iq.py \ 41 gr_plot_short.py \ 26 42 usrp_fft.py \ 27 43 usrp_oscope.py \ … … 32 48 usrp_test_counting.py \ 33 49 usrp_test_loopback.py 50 51 MOSTLYCLEANFILES = *~ *.pyc gnuradio/trunk/gr-utils/src/python/gr_plot_char.py
r7535 r7536 28 28 29 29 from optparse import OptionParser 30 from g r_plot_data import plot_data30 from gnuradio.plot_data import plot_data 31 31 32 32 def main(): gnuradio/trunk/gr-utils/src/python/gr_plot_const.py
r7535 r7536 172 172 173 173 174 175 #FIXME: there must be a way to do this with a Python builtin176 174 def find(item_in, list_search): 177 for l in list_search: 178 if item_in == l: 179 return True 180 return False 175 try: 176 return list_search.index(item_in) != None 177 except ValueError: 178 return False 179 181 180 182 181 def main(): gnuradio/trunk/gr-utils/src/python/gr_plot_fft_c.py
r7535 r7536 196 196 self.update_plots() 197 197 198 199 200 #FIXME: there must be a way to do this with a Python builtin201 198 def find(item_in, list_search): 202 for l in list_search:203 if item_in == l: 204 return True205 return False199 try: 200 return list_search.index(item_in) != None 201 except ValueError: 202 return False 206 203 207 204 def main(): gnuradio/trunk/gr-utils/src/python/gr_plot_fft_f.py
r7535 r7536 199 199 200 200 201 202 #FIXME: there must be a way to do this with a Python builtin203 201 def find(item_in, list_search): 204 for l in list_search:205 if item_in == l: 206 return True207 return False208 202 try: 203 return list_search.index(item_in) != None 204 except ValueError: 205 return False 206 209 207 def main(): 210 208 usage="%prog: [options] input_filename" gnuradio/trunk/gr-utils/src/python/gr_plot_float.py
r7535 r7536 28 28 29 29 from optparse import OptionParser 30 from g r_plot_data import plot_data30 from gnuradio.plot_data import plot_data 31 31 32 32 def main(): gnuradio/trunk/gr-utils/src/python/gr_plot_int.py
r7535 r7536 28 28 29 29 from optparse import OptionParser 30 from g r_plot_data import plot_data30 from gnuradio.plot_data import plot_data 31 31 32 32 def main(): gnuradio/trunk/gr-utils/src/python/gr_plot_iq.py
r7535 r7536 144 144 self.update_plots() 145 145 146 147 146 148 #FIXME: there must be a way to do this with a Python builtin149 147 def find(item_in, list_search): 150 for l in list_search:151 if item_in == l: 152 return True153 return False154 148 try: 149 return list_search.index(item_in) != None 150 except ValueError: 151 return False 152 155 153 def main(): 156 154 usage="%prog: [options] input_filename" gnuradio/trunk/gr-utils/src/python/gr_plot_short.py
r7535 r7536 28 28 29 29 from optparse import OptionParser 30 from g r_plot_data import plot_data30 from gnuradio.plot_data import plot_data 31 31 32 32 def main(): gnuradio/trunk/gr-utils/src/python/plot_data.py
- Property svn:executable deleted
r7535 r7536 1 #!/usr/bin/env python2 1 # 3 2 # Copyright 2007,2008 Free Software Foundation, Inc. … … 162 161 self.update_plots() 163 162 164 165 163 166 #FIXME: there must be a way to do this with a Python builtin167 164 def find(item_in, list_search): 168 for l in list_search:169 if item_in == l:170 return True171 return False172 173 def main():174 usage="%prog: [options] input_filenames"175 description = "This is just a test program for this class. It should really be called by gr_plot_<datatype>.py for a specific type of file data (float, int, byte, etc.)."176 177 parser = OptionParser(conflict_handler="resolve", usage=usage, description=description)178 parser.add_option("-B", "--block", type="int", default=1000,179 help="Specify the block size [default=%default]")180 parser.add_option("-s", "--start", type="int", default=0,181 help="Specify where to start in the file [default=%default]")182 parser.add_option("-R", "--sample-rate", type="float", default=1.0,183 help="Set the sampler rate of the data [default=%default]")184 185 (options, args) = parser.parse_args ()186 if len(args) < 1:187 parser.print_help()188 raise SystemExit, 1189 filenames = args190 191 datatype=scipy.float32192 dc = plot_data(datatype, filenames, options)193 194 if __name__ == "__main__":195 165 try: 196 main() 197 except KeyboardInterrupt: 198 pass 199 166 return list_search.index(item_in) != None 167 except ValueError: 168 return False
