@@ -228,8 +228,8 @@ def __getitem__(self, istep):
228228
229229 def __delitem__ (self , istep ):
230230 if istep is not None and istep in self ._data :
231- self .sdat .collected_fields = [
232- (i , f ) for i , f in self .sdat .collected_fields if i != istep ]
231+ self .sdat ._collected_fields = [
232+ (i , f ) for i , f in self .sdat ._collected_fields if i != istep ]
233233 del self ._data [istep ]
234234
235235 def __len__ (self ):
@@ -536,8 +536,6 @@ def __init__(self, path=None):
536536 steps (:class:`_Steps`): collection of time steps.
537537 snaps (:class:`_Snaps`): collection of snapshots.
538538 scales (:class:`_Scales`): dimensionful scaling factors.
539- collected_fields (list of (int, str)): list of fields currently in
540- memory, described by istep and field name.
541539 """
542540 if path is None :
543541 path = conf .core .path
@@ -559,7 +557,8 @@ def __init__(self, path=None):
559557 self .steps = _Steps (self )
560558 self .snaps = _Snaps (self )
561559 self ._nfields_max = 50
562- self .collected_fields = []
560+ # list of (istep, field_name) in memory
561+ self ._collected_fields = []
563562
564563 def __repr__ (self ):
565564 return 'StagyyData({})' .format (repr (self .path ))
0 commit comments