It would be great if the next release supported reading save files with pointers in them. The example I am trying is a save file with a coyote library linked list of structures saved in it (http://www.dfanning.com/programs/linkedlist__define.pro)
The error given is:
In [7]: s=idlsave.read('thd_2008101000000-2008201000000_vpp.sav')
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
/Users/balarsen/Desktop/<ipython console> in <module>()
/Library/Frameworks/Python.framework/Versions/5.1.1/lib/python2.5/site-packages/IDLSave-0.9.2-py2.5.egg/idlsave/idlsave.pyc in read(filename, verbose)
589
590 def read(filename, verbose=True):
591 s = IDLSaveFile(filename)
--> 592 s.parse(verbose=verbose)
593 return s
/Library/Frameworks/Python.framework/Versions/5.1.1/lib/python2.5/site-packages/IDLSave-0.9.2-py2.5.egg/idlsave/idlsave.pyc in parse(self, verbose)
537 rectypes = []
538 while True:
--> 539 r = Record().read(f)
540 self.records.append(r)
541 rectypes.append(r.rectype)
/Library/Frameworks/Python.framework/Versions/5.1.1/lib/python2.5/site-packages/IDLSave-0.9.2-py2.5.egg/idlsave/idlsave.pyc in read(self, f)
340
341 raise Exception("RECTYPE=%s not implemented" % \
--> 342 rectype_dict[self.rectype])
343
344 f.seek(self.nextrec)
KeyError: 'HEAP_DATA'
Could you attach an example .sav file to this ticket, or if you would rather keep it private, could you send it to me by email (robitaille at users dot sourceforge dot net). Thanks!
Pointers are now supported in the svn version of IDLSave. If there are any issues please open a new ticket in the Bugs tracker.