dirac-institute / sorcha

An open-source community LSST Solar System Simulator
Other
18 stars 17 forks source link

Update SSPP config file generator to automatically generate several config files #118

Closed astronomerritt closed 2 years ago

astronomerritt commented 2 years ago

The SSPP config file generator I wrote (makeConfigPP.py) currently does not have the functionality to generate 100s of config files automatically in 100s of different directories. This is pretty vital functionality if the config file generator is used for its intended use of allowing many, many runs to be performed automatically on a supercomputer. Apparently the OIF config file generator does do this, so it should be a matter of comparing the two and adding the necessary functionality to makeConfigPP.py.

astronomerritt commented 2 years ago

Does anyone have any guidance on how best to do this? Having not used supercomputers much before, I'm not entirely sure how to set this up to best help the user. OIF's config file generator appears to create a config file per number of orbits and save them in the same directory, which isn't really generalisable to this as far as I can tell.

As it is, it could be folded into a bash script or similar that would allow the user to iterate over whatever config file parameters they like and save the config file in their own defined locations.

Very happy to hear any advice on this :)

mschwamb commented 2 years ago

So we've agreed. That OIF should get split into and one can use one config file and different command line values in the slurm script.