Changes between Version 11 and Version 12 of MaskedArray

Show
Ignore:
Timestamp:
02/28/06 18:23:05 (7 years ago)
Author:
sasha
Comment:

cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • MaskedArray

    v11 v12  
    120120 
    121121=== Case 1 === 
    122   The function would work OK with masked arrays if it called {{{MA.asarray}}} instead of {{{numeric.asarray}}} (as it's currently the case). A fix could be to add a {{{mask=False}}} property by default to any {{{ndarray}}}, and get rid of the {{{MaskedArray}}} class ? 
     122  The function would work OK with masked arrays if it called {{{ma.asarray}}} instead of {{{numeric.asarray}}} (as it's currently the case). A fix could be to add a {{{mask=False_}}} property by default to any {{{ndarray}}}, and get rid of the {{{MaskedArray}}} class ? 
    123123  * '''{{{diff}}}''' 
    124124 
     
    127127  The function can be applied only to the data part once missing values are adequately filled. If needed, the masked version is obtained easily by applying the initial mask to the result. An {{{use_missing}}} option could be introduced to allow the use of missing values (the output would be masked), or discard them (default option?). 
    128128  * '''{{{ndim}}}''': The masked array could inherit {{{ndim}}} from its {{{data}}} part. 
    129   * '''{{{std, var}}}''': An example of implementation of the function (not the method) {{{std}}} is given [http://projects.scipy.org/scipy/numpy/attachment/wiki/MaskedArray/ma_examples.py there]. 
     129  * '''{{{std, var}}}''': An example of implementation of the function (not the method) {{{std}}} is given [attachment:ma_examples.py there]. 
    130130  * '''{{{trace}}}''': Fill with 0 if {{{use_missing}}} is False. 
    131131  * '''{{{cumprod, cumsum}}}''':   
     
    137137{{{ 
    138138#!python 
    139 mar_ = lambda seq:MA.array(data=[s.data for s in seq],mask=[s.mask for s in seq]) 
     139mar_ = lambda seq:ma.array(data=[s.data for s in seq],mask=[s.mask for s in seq]) 
    140140}}} 
    141141  * '''{{{swapaxes, squeeze}}}''' 
     
    144144  The trickiest case where missing values must be remain masked during the process. 
    145145 
    146   * '''{{{median}}}''': The two functions in [http://projects.scipy.org/scipy/numpy/attachment/wiki/MaskedArray/ma_examples.py this attachment] (seem to) work well for 1- and 2D arrays. The problem gets more complex for higher dimensions. 
     146  * '''{{{median}}}''': The two functions in [attachment:ma_examples.py this attachment] (seem to) work well for 1- and 2D arrays. The problem gets more complex for higher dimensions. 
    147147