[NumPy-Tickets] [NumPy] #1332: set_fill_value does not work properly for masked structured array

NumPy Trac numpy-tickets@scipy....
Thu Jan 20 06:31:28 CST 2011


#1332: set_fill_value does not work properly for masked structured array
-------------------------+--------------------------------------------------
  Reporter:  robitaille  |       Owner:  pierregm
      Type:  defect      |      Status:  closed  
  Priority:  high        |   Milestone:          
 Component:  numpy.ma    |     Version:  devel   
Resolution:  fixed       |    Keywords:          
-------------------------+--------------------------------------------------

Comment(by ScottSinclair):

 Replying to [comment:13 hairymapper]:
 > Does anyone know which Numpy version this has been fixed in (i.e.
 r8094)? I'd like to the know the minimum version a user needs to be able
 to use ma.set_fill_value(). Thanks!

 Well,

 {{{
 $ git log --grep=#1332
 commit 5bad51bf3afc9d2256e9f6a5a1883233b3065ddd
 Author: pierregm <pierregm@localhost>
 Date:   Sun Feb 7 22:26:04 2010 +0000

     * Force the fill_value of a structured masked array to be defined (bug
 #1332)

 commit f8f753b33fd77211227d5e5dad2d0b9c2e3dedad
 Author: pierregm <pierregm@localhost>
 Date:   Fri Dec 18 22:13:33 2009 +0000

     * Force _fill_value to a 0d array (so that field values can be
 propagated, bug #1332)
     * Make .fill_value return a scalar (int, float, void...) and not a 0d
 array
 }}}

 You want the first release after 5bad51b, which looks like Numpy 1.4.1

 {{{
 $ git show v1.4.1
 commit 351726ab14cf919aab55fb91608f6448bb063609
 Author: rgommers <ralf.gommers@googlemail.com>
 Date:   Thu Apr 22 10:35:16 2010 +0000

     REL: Set version to 1.4.1.

 diff --git a/setup.py b/setup.py
 index 802e906..b2c6e98 100755
 --- a/setup.py
 +++ b/setup.py
 @@ -52,7 +52,7 @@ MAJOR               = 1
  MINOR               = 4
  MICRO               = 1
  ISRELEASED          = True
 -VERSION             = '%d.%d.%drc3' % (MAJOR, MINOR, MICRO)
 +VERSION             = '%d.%d.%d' % (MAJOR, MINOR, MICRO)

  # Return the svn version as a string, raise a ValueError otherwise
  def svn_version():
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1332#comment:14>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list