Ejemplo n.º 1
0
    def __setitem__(self, indx, value):
        """
        Sets the given record to value.

        """
        MaskedArray.__setitem__(self, indx, value)
        if isinstance(indx, str):
            self._mask[indx] = ma.getmaskarray(value)
Ejemplo n.º 2
0
    def __setitem__(self, indx, value):
        """
        Sets the given record to value.

        """
        MaskedArray.__setitem__(self, indx, value)
        if isinstance(indx, basestring):
            self._mask[indx] = ma.getmaskarray(value)
Ejemplo n.º 3
0
    def __setitem__(self, indx, value):
        """x.__setitem__(i, y) <==> x[i]=y

        Sets item described by indx. If value is masked, masks those locations.
        Errors are also replaced if there are errors in both source and destination.
        """

        MaskedArray.__setitem__(self, indx, value)
        if isinstance(value, Dvect) and self._err is not noerr and value._err is not noerr:
            print (len(indx), len(self._err), len(value._err))
            self._err[indx] = value._err
Ejemplo n.º 4
0
 def __setitem__(self, indx, value):
     "Sets the given record to value."
     MaskedArray.__setitem__(self, indx, value)
     if isinstance(indx, basestring):
         self._fieldmask[indx] = ma.getmaskarray(value)