IDL Workbench Path Woes [message #59339] |
Fri, 21 March 2008 16:04  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
Today I had a few minutes while a program was running, so
I tried to fix my IDL path woes. My problem is, I want
my Coyote directory FIRST on my IDL path. Now, my
Coyote directory is also a project in my IDL Workbench.
Here is what I tried. I went to IDL Preference Paths
and made the Coyote directory first on my Path. Then
I right clicked on the Coyote project and turned the
Update Path on Open button OFF. Then restarted IDL.
The Coyote directory is nowhere to be found on my
path. :-(
OK, so I made a startup file and included this line
in it:
!PATH = 'C:\IDL\Coyote\;' + !PATH
Now, when I start up, Coyote is the first thing on
my path. Hooray!
But not so fast, IDL is acting weird. I mean, weirder
than usually. Slow like. In fact, like its in some kind
of infinite loop. Can't get its attention. And sure
enough, my IDL session *never* finishes "analyzing code".
It will analyze code all day long!
So, aside from naming my Coyote project AAAA_Coyote, how
do I get it first on my path?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: IDL Workbench Path Woes [message #59585 is a reply to message #59339] |
Wed, 02 April 2008 10:30  |
Spon
Messages: 178 Registered: September 2007
|
Senior Member |
|
|
On Apr 2, 6:21 pm, Spon <christoph.b...@gmail.com> wrote:
> On Apr 2, 5:34 pm, David Fanning <n...@dfanning.com> wrote:
>
>
>
>> Spon writes:
>>> As I'm currently in the grip of evangelical fervour induced by a
>>> re-reading of JD Smith's (in)famous oration -
>>> http://www.dfanning.com/tips/forloops.html-I've discovered that you
>>> can replace the FOR loop by using TRANSPOSE; like this:
>
>>> Print, Transpose(StrSplit(!PATH, Path_Sep(/SEARCH_PATH), /Extract))
>
>> JD, of course, is famous, but hardly anyone reads (well,
>> finishes) his articles. I, on the other hand, am not
>> famous at all, but a lot of people have read the nonsense
>> I've written. The difference between us is the
>> energy differential given off by the human brain when
>> they read a line of code like that compared to my humble
>> PrintPath program. :-)
>
>> Cheers,
>
>> David
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming (www.dfanning.com)
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> Butbutbut...
>
> theSeparator = Path_Sep(/SEARCH_PATH)
> theStringArray = (!Path, theSeparator, /EXTRACT)
> theStringColumnArray = Transpose(theStringArray)
> Print, theStringColumnArray
>
> ...and suddenly you'd be hard pushed to spot JD's influence at all ;-)
>
> I think you're selling yourself short, David!
>
> Chris
Grr... this is what I get for being a smart alec I guess.
This:
> theStringArray = (!Path, theSeparator, /EXTRACT)
Should of course read:
theStringArray = StrSplit(!Path, theSeparator, /EXTRACT)
:-(
|
|
|
Re: IDL Workbench Path Woes [message #59586 is a reply to message #59339] |
Wed, 02 April 2008 10:21  |
Spon
Messages: 178 Registered: September 2007
|
Senior Member |
|
|
On Apr 2, 5:34 pm, David Fanning <n...@dfanning.com> wrote:
> Spon writes:
>> As I'm currently in the grip of evangelical fervour induced by a
>> re-reading of JD Smith's (in)famous oration -
>> http://www.dfanning.com/tips/forloops.html- I've discovered that you
>> can replace the FOR loop by using TRANSPOSE; like this:
>
>> Print, Transpose(StrSplit(!PATH, Path_Sep(/SEARCH_PATH), /Extract))
>
> JD, of course, is famous, but hardly anyone reads (well,
> finishes) his articles. I, on the other hand, am not
> famous at all, but a lot of people have read the nonsense
> I've written. The difference between us is the
> energy differential given off by the human brain when
> they read a line of code like that compared to my humble
> PrintPath program. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Butbutbut...
theSeparator = Path_Sep(/SEARCH_PATH)
theStringArray = (!Path, theSeparator, /EXTRACT)
theStringColumnArray = Transpose(theStringArray)
Print, theStringColumnArray
...and suddenly you'd be hard pushed to spot JD's influence at all ;-)
I think you're selling yourself short, David!
Chris
|
|
|
Re: IDL Workbench Path Woes [message #59591 is a reply to message #59339] |
Wed, 02 April 2008 09:34  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Spon writes:
> As I'm currently in the grip of evangelical fervour induced by a
> re-reading of JD Smith's (in)famous oration -
> http://www.dfanning.com/tips/forloops.html - I've discovered that you
> can replace the FOR loop by using TRANSPOSE; like this:
>
> Print, Transpose(StrSplit(!PATH, Path_Sep(/SEARCH_PATH), /Extract))
JD, of course, is famous, but hardly anyone reads (well,
finishes) his articles. I, on the other hand, am not
famous at all, but a lot of people have read the nonsense
I've written. The difference between us is the
energy differential given off by the human brain when
they read a line of code like that compared to my humble
PrintPath program. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|