class documentation

class _convert2ma: (source)

View In Hierarchy

Convert functions from numpy to numpy.ma.

Parameters
_methodnameName of the method to transform.
Method __call__ Undocumented
Method __init__ Undocumented
Method getdoc Return the doc of the function (from the doc of the method).
Class Variable __doc__ Undocumented
Method _replace_return_type Replace documentation of np function's return type.
Instance Variable _extras Undocumented
Instance Variable _func Undocumented
def __call__(self, *args, **params): (source)

Undocumented

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

Undocumented

def getdoc(self, np_ret, np_ma_ret): (source)

Return the doc of the function (from the doc of the method).

Undocumented

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

Replace documentation of np function's return type.

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

Parameters
doc:strThe documentation of the np method.
np_ret:strThe return type string of the np method that we want to replace. (e.g. "out : ndarray")
np_ma_ret:strThe return type string of the np.ma method. (e.g. "out : MaskedArray")

Undocumented

Undocumented