class documentation

class _convert2ma:

View In Hierarchy

Convert functions from numpy to numpy.ma.

Parameters

_methodname : string
Name of the method to transform.
Method __call__ Undocumented
Method __init__ Undocumented
Method ​_replace​_return​_type Replace documentation of np function's return type.
Method getdoc Return the doc of the function (from the doc of the method).
Class Variable __doc__ Undocumented
Instance Variable ​_extras Undocumented
Instance Variable ​_func Undocumented
def __call__(self, *args, **params):

Undocumented

def __init__(self, funcname, np_ret, np_ma_ret, params=None):

Undocumented

def _replace_return_type(self, doc, np_ret, np_ma_ret):

Replace documentation of np function's return type.

Replaces it with the proper type for the np.ma function.

Parameters

doc : str
The documentation of the np method.
np_ret : str
The return type string of the np method that we want to replace. (e.g. "out : ndarray")
np_ma_ret : str
The return type string of the np.ma method. (e.g. "out : MaskedArray")
def getdoc(self, np_ret, np_ma_ret):
Return the doc of the function (from the doc of the method).
__doc__ =

Undocumented

_extras =

Undocumented

_func =

Undocumented