Running a play list from command line. #9465
-
It is possible to run a sub-set of the simulations from an .apsimx file from command line by passing a list of simulations in. The example below uses the subprocess library in python to execute the command line run. subprocess.run(['C:/GitHubRepos/ApsimX/bin/Debug/net6.0/Models.exe',
'C:/GitHubRepos/ApsimX/Prototypes/Lentil/Lentil.apsimx',
'/SimulationNameRegexPattern:(SimName1)|(SimName2)|(SimName3)|(SimName4)'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT) APSIM now has the Playlist class which can select a sub set of simulations to run which is easier than trying to compile lists of simulations in a script. However, I cannot work out how to run the playlist from the command line. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for bringing this up @HamishBrownPFR. This has exposed a gap in our documentation. I'll write up a 'how to' in the command line documentation. This will be available shortly. |
Beta Was this translation helpful? Give feedback.
Thanks for bringing this up @HamishBrownPFR. This has exposed a gap in our documentation. I'll write up a 'how to' in the command line documentation. This will be available shortly.