Question

I am trying to restore a sav file with numpy readsav. The sav file contains an array of idl objects I have defined (with my own types).

This type information is completely absent from the recarray I obtain with readsav. The dtype.name property returns an integer which seems arbitrary to me (and I don't know how to get this number in IDL).

Is there a way to get this information ?

Thanks

Was it helpful?

Solution

I'm guessing it is the heap identifier:

IDL> o = obj_new('IDLgrView')
IDL> print, obj_valid(o, /get_heap_identifier)
           1
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top