Hi All,

Does anyone have any idea what's happening here? It seems like
gr.and_const_ss(short k) wont accept any values of k greater than
0x7fff.
It's a bit of a problem for using gr-gpio where the use case would be
gr.and_const_ss(0xEFFF) to get only the analog portion of the samples.

Executing z = gr.and_const_ss(0x7fff) works fine 
but z = gr.and_const_ss(0x8000) results in:

>>> z = gr.and_const_ss(0x8000)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_swig_py_gengen.py",
 line 1636, in and_const_ss
    return _gnuradio_swig_py_gengen.and_const_ss(*args, **kwargs)
OverflowError: in method 'and_const_ss', argument 1 of type 'short'

I've git pulled with no improvement and I'm running Ubuntu 10.04 LTS.
This issue can be reproduced using either an interactive Python console
or by running gnuradio/gr-gpio/src/python/gpio_rx_sfile.py

Also multiply_const_ss is doing the same thing.

Maybe I need to raise this as an issue?

Thanks for any help,
Drew
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to