[Biopython-dev] [Bug 2251] New: [PATCH] NumPy support for BioPython

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Mar 27 13:08:37 UTC 2007


           Summary: [PATCH] NumPy support for BioPython
           Product: Biopython
           Version: Not Applicable
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: edschofield at gmail.com

The following patch adds support for NumPy in addition to Numeric. It does so
with a thin wrapper layer at the C level and Python level, similar in purpose
to (but less ambitious than) the numerix wrapper layer used by matplotlib.

The patch is designed to prevent imports of incompatible compiled C modules in
the case one installs Numeric after installing BioPython with NumPy support.

It also changes the following:
- C #include statements
- Python import statements
- references to obsoleted function names
- the width of the dimension data types in cluster.c from int to intp (for
64-bit architectures)
- the distutils setup.py file to supply the correct NumPy header locations.
- the documentation (updating references to NumPy)

It also fixes array boolean operators in MarkovModel.py, which were silently
broken before.

It applies to BioPython 1.43, as follows:

$ tar xzvf biopython-1.43.tar.gz
$ cd biopython-1.43
$ patch -p1 < /path/to/biopython-1.43-numpy-support-v5.patch

Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Biopython-dev mailing list