문제

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

도움이 되었습니까?

해결책

I'm guessing it is the heap identifier:

IDL> o = obj_new('IDLgrView')
IDL> print, obj_valid(o, /get_heap_identifier)
           1
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top