Changes between Version 11 and Version 12 of MaskedArray
- Timestamp:
- 02/28/06 18:23:05 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MaskedArray
v11 v12 120 120 121 121 === 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 ? 123 123 * '''{{{diff}}}''' 124 124 … … 127 127 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?). 128 128 * '''{{{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]. 130 130 * '''{{{trace}}}''': Fill with 0 if {{{use_missing}}} is False. 131 131 * '''{{{cumprod, cumsum}}}''': … … 137 137 {{{ 138 138 #!python 139 mar_ = lambda seq: MA.array(data=[s.data for s in seq],mask=[s.mask for s in seq])139 mar_ = lambda seq:ma.array(data=[s.data for s in seq],mask=[s.mask for s in seq]) 140 140 }}} 141 141 * '''{{{swapaxes, squeeze}}}''' … … 144 144 The trickiest case where missing values must be remain masked during the process. 145 145 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. 147 147
