Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 def __array_finalize__(self, obj):
     TimeSeriesRecords.__array_finalize__(self, obj)
     self._ensoindicator = getattr(obj, "_ensoindicator", None)
Ejemplo n.º 4
0
 def __array_finalize__(self, obj):
     TimeSeriesRecords.__array_finalize__(self, obj)
     self._ensoindicator = getattr(obj, '_ensoindicator', None)