getADDEImage tracking

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

getADDEImage tracking

Post by joleenf »

Hi,

Is there a hook in getADDEImage for tracking?

For example, I can load an adde image using tracking with JPythonMethods.load

Code: Select all

# Add tracking before loading in attempt to avoid processing before a complete image
# is available.
addeCallPrevious = server + "&" + dataGroupDesc + "&TRACK=1&" + keywords + "&POS=-2";
addeCallCurrent = server + "&" + dataGroupDesc + "&TRACK=1&" + keywords + "&POS=-1";
previousFile = JPyM.load(addeCallPrevious);
currentFile = JPyM.load(addeCallCurrent);


where server, dataGroupDesc, keywords are various parts of the ADDE call.

I am trying to do the same thing but with the more formal scripting commands. If I can't using JPythonMethods.load is just fine with me and probably for the McIDAS-X users who will be receiving this script.
User avatar
Jon
Posts: 192
Joined: Fri Jan 09, 2009 8:44 pm
Location: Madison, WI

Re: getADDEImage tracking

Post by Jon »

There is now (well…it'll be in the nightly)! The parameter name is "track", and it defaults to False. You can use it like so:

Code: Select all

foo, bar = getADDEImage(track=True, **myOtherParams)
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: getADDEImage tracking

Post by joleenf »

Awesome! Thanks Jon!

Joleen
Post Reply