Re: a simple hack!Re: How do I save parameters for next run? [message #38897] |
Tue, 06 April 2004 21:54 |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
Yunxiang Zhang <yxzhang@stanford.edu> writes:
> I once tried this from within the .sav file. And I got the error like
> 'EXECUTE function not available'. If I remember correctly, that is one of
> the drawbacks of IDL virtual machine. So is it possible to avoid using
> EXECUTE function in your cmsvlib? Thanks!
Short answer, no. Long answer, probably not. Longest answer, maybe,
but I don't have time now to investigate such a significant rework.
Good luck,
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Re: a simple hack!Re: How do I save parameters for next run? [message #38898 is a reply to message #38897] |
Tue, 06 April 2004 17:47  |
Yunxiang Zhang
Messages: 19 Registered: October 2003
|
Junior Member |
|
|
I once tried this from within the .sav file. And I got the error like
'EXECUTE function not available'. If I remember correctly, that is one of
the drawbacks of IDL virtual machine. So is it possible to avoid using
EXECUTE function in your cmsvlib? Thanks!
Yunxiang
On 6 Apr 2004, Craig Markwardt wrote:
> Yunxiang Zhang <yxzhang@stanford.edu> writes:
>
>
>> Folks,
>>
>> Thanks for all your input here. I was trying to look into Craig's
>> library and see if I can come up with a solution. But it turned to be
>> a little bit complicated for me. Today, I finally did it with a simple
>> hack by appending the default data to the end of the .sav file. The code
>> will read itself, the .sav file, to get the default value and after user
>> input it will update the data appended. The only drawback is you can't run
>> the program before you generate the .sav file and append the default data
>> to the end of the .sav file. Here's how the code looks like,
>
> Rather than hacking some arbitrary data onto the end of the save file,
> why not append the entries directly to the save file as legitimate
> save-file variables?
>
> You should be able to do this with CMSAVE, ..., /APPEND
>
> Good luck,
> Craig
>
> --
> ------------------------------------------------------------ --------------
> Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
> Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
> ------------------------------------------------------------ --------------
>
|
|
|
Re: a simple hack!Re: How do I save parameters for next run? [message #38906 is a reply to message #38898] |
Tue, 06 April 2004 10:09  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
Yunxiang Zhang <yxzhang@stanford.edu> writes:
> Folks,
>
> Thanks for all your input here. I was trying to look into Craig's
> library and see if I can come up with a solution. But it turned to be
> a little bit complicated for me. Today, I finally did it with a simple
> hack by appending the default data to the end of the .sav file. The code
> will read itself, the .sav file, to get the default value and after user
> input it will update the data appended. The only drawback is you can't run
> the program before you generate the .sav file and append the default data
> to the end of the .sav file. Here's how the code looks like,
Rather than hacking some arbitrary data onto the end of the save file,
why not append the entries directly to the save file as legitimate
save-file variables?
You should be able to do this with CMSAVE, ..., /APPEND
Good luck,
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|