def __getitem__(self, item): obj = TimeSeriesRecords.__getitem__(self, item) getattribute = MaskedRecords.__getattribute__ _dict = getattribute(self, "__dict__") if isinstance(obj, TimeSeries): obj = obj.view(ClimateSeries) obj._ensoindicator = getattribute(self, "_ensoindicator") obj._optinfo = getattribute(self, "_optinfo") return obj
def __getitem__(self, item): obj = TimeSeriesRecords.__getitem__(self, item) getattribute = MaskedRecords.__getattribute__ _dict = getattribute(self, '__dict__') if isinstance(obj, TimeSeries): obj = obj.view(ClimateSeries) obj._ensoindicator = getattribute(self, '_ensoindicator') obj._optinfo = getattribute(self, '_optinfo') return obj
def __array_finalize__(self, obj): TimeSeriesRecords.__array_finalize__(self, obj) self._ensoindicator = getattr(obj, "_ensoindicator", None)
def __array_finalize__(self, obj): TimeSeriesRecords.__array_finalize__(self, obj) self._ensoindicator = getattr(obj, '_ensoindicator', None)