Page 1 of 1

How to use path_cal in batch command

Posted: Tue 20 Feb 2024 14:25
by shliu
Dear Didier,

I didn't manage to get the right calculation path in batch mode in python or matlab.

Python:
import os
os.system('TraceW64.exe MEBT.ini hide nbr_part1=1000 path_cal=result > output.txt')

Matlab:
cmd=['TraceW64.exe MEBT.ini hide nbr_part1=1000 path_cal=result > output.txt'];
system(cmd);

The results are in the folder as the .ini file, rather than in the "result" file.

Could you please help me with that?

Kinds,
shliu

Re: How to use path_cal in batch command

Posted: Tue 20 Feb 2024 16:49
by Didier
Dear Shliu,

TraceW64 is a light version of the code that does not include parallelization, error studies and file paths management. With it, all the files must be present with the execuble file and the results will be also in the same paht

Use TraceWin_noGUI.exe to get the exact behaviour of the graphical version.

Regards,

Didier

Re: How to use path_cal in batch command

Posted: Tue 20 Feb 2024 17:30
by shliu
Dear Didier,

Thank you very much! It works now.

And is there any differences between the two ways? Or what's the advantage of TraceW64 than TraceWin_noGUI? Faster for simple cases?

Kinds,
shliu

Re: How to use path_cal in batch command

Posted: Tue 20 Feb 2024 18:04
by Didier
Dear shliu,

I gave you the differences in my previous post. It's up to you to see what you need.
In example, TraceWin itseft, uses the light verison to launch statistical error studies on remote machines or clusters because it is not parallelized and has a small size that is easier to send via the network.

Regards,

Didier

Re: How to use path_cal in batch command

Posted: Tue 20 Feb 2024 21:01
by shliu
Dear Didier,

I see. Thank you!

Kinds,
shliu