# Conversion from Python Numeric to numpy on trunk

**URL:** <https://www.ruby-forum.com/t/conversion-from-python-numeric-to-numpy-on-trunk/105311>\
**Category:** GNU Radio\
**Created:** [May 28, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/conversion-from-python-numeric-to-numpy-on-trunk/105311 "2007-05-28T18:53:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jconley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@jconley](https://www.ruby-forum.com/u/jconley)\
**Post date:** [May 28, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/conversion-from-python-numeric-to-numpy-on-trunk/105311/1 "2007-05-28T18:53:48Z")

</div>

There is about to be a change to the GNU Radio trunk code that will  
require installation of additional software before certain things will  
work again correctly.

GNU Radio uses the Python Numeric library in certain places to perform  
fast array math from within Python. The Numeric library is mature but  
has been superseded by the ‘numpy’ package for future development. The  
two are nearly identical in external API, but numpy has some syntax  
changes and a different internal implementation.

Recently a bug was reported when using Python 2.5 and 64-bit  
architectures (“matrices are not aligned for copy”). This was Numeric  
specific, and rather than try to fix Numeric, which is no longer  
maintained, GNU Radio has been updated to use numpy instead, which does  
not show the issue.

For GNU Radio users that are running a version of the trunk software  
(vs. the 3.0.x release), once we update the trunk with the changes,  
you’ll need to install they numpy package (you can leave Numeric  
installed if other software on your platform still needs it) in order to  
use several of the “instrumentation” blocks (scopesink, waterfallsink,  
fftsink), as well as the digital packet handling and modulator and  
demodulator blocks.

Most systems should already have a suitable version of numpy ready for  
installation using their respective package managers. The original  
numpy package may be found at:

> **[Numerical Python - Browse /NumPy at SourceForge.net](https://sourceforge.net/projects/numpy/files/NumPy/)**
>
> A package for scientific computing with Python

Because of the variety of platforms GNU Radio is used on, there may be  
some problems with specific systems that we’ll need to go back and look  
at. The GNU Radio wiki pages that deal with installation on different  
platforms still need to be updated to reflect the change.

–  
Johnathan C.  
Corgan Enterprises LLC  
[http://corganenterprises.com](http://corganenterprises.com)

---

<div class="post-metadata">

**Author:** ![jconley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@jconley](https://www.ruby-forum.com/u/jconley)\
**Post date:** [May 29, 2007, 12:49am UTC](https://www.ruby-forum.com/t/conversion-from-python-numeric-to-numpy-on-trunk/105311/2 "2007-05-29T00:49:26Z")

</div>

2007/5/28, Johnathan C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Because of the variety of platforms GNU Radio is used on, there may be  
> some problems with specific systems that we’ll need to go back and look  
> at. The GNU Radio wiki pages that deal with installation on different  
> platforms still need to be updated to reflect the change.

numpy is part of the “Engineering and Scientific” group, so the  
instructions for Fedora is up to date:  
[http://gnuradio.org/trac/wiki/FedoraInstall](http://gnuradio.org/trac/wiki/FedoraInstall)

–  
Trond D.
