PARAMS2CSV
Turn parameters.txt for an ensemble into a CSV file. Optionally also clean parameters.txt for inconsistencies (differing number of records)
parameters.txt is any text file with <key> <value> on each line
In the CSV file, each individual parameter file will be represented by one data row. The order of parameters in each text file is not conserved.
The original filename for each file is written to the column ‘filename’. Beware if you have that as a <key> in the text files.
usage: params2csv [-h] [-o OUTPUT] [--filenamecolumnname FILENAMECOLUMNNAME]
[--keepconstantcolumns] [--clean] [-v] [--version]
parameterfile [parameterfile ...]
Positional Arguments
- parameterfile
all parameter files to be merged
Named Arguments
- -o, --output
name of output csv file
Default: “params.csv”
- --filenamecolumnname
Column name that will contain the name of the parameter file
Default: “filename”
- --keepconstantcolumns
Keep constant columns
Default: False
- --clean
Write back cleaned parameters.txt
Default: False
- -v, --verbose
Be verbose
Default: False
- --version
show program’s version number and exit