update_param
Use this script to (mass) update either the name of a parameter or to update the value of a parameter.
The main purpose is to change multiple parameter files at once. As such, the script recursively searches for all parameter files from the calling directory and updates them. Can also be used on a single parameter file or for parameter files with a given root.
Functions
|
Search recursively for Python .pf files. |
|
Get the root name of a Python simulation, extracting it from a file path. |
|
The main function of the script: parses input from the command line using argparse and, most importantly, controls the flow for updating parameter files. |
|
Change the name of a parameter in a Python parameter file. |