comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » New free DLL for calling Python from IDL!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: New free DLL for calling Python from IDL! [message #87918 is a reply to message #87917] Mon, 03 March 2014 15:40 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Monday, March 3, 2014 4:37:09 PM UTC-7, ronn kling wrote:
>> But here's a question for Jason or Ronn: once I've created the "p" object, it says it is a "tuple". Is there any way to get properties back out of the object? I tried the following:
>
>>
>
>> IDL> pb = pyimportbuiltins()
>
>>
>
>> IDL> pb.getattr(p,'colors')
>
>>
>
>> % PYTHONOBJECT::GETATTR: AttributeError: 'tuple' object has no attribute 'colors'
>
>>
>
> Jason may have a better way but what I would do is pull the tuple apart into separate variables on the python side using pyexec and then get them back one at a time.
>
>
>
> This is exactly the case where maybe at some point we can get Jason to mod Slither to return something like a Dictionary object.

Yes. What I want to do is just:
print, p.colors
Then it will really look like IDL code, and we'll all be horribly confused. :-)
-C
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: superresolution
Next Topic: How to find the confidence interval of a variable data at 95% or 66%?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:55:42 PDT 2025

Total time taken to generate the page: 0.00447 seconds