ctools 2.1.0.dev
|
Functions | |
write_csv_row (outfile, row, colnames, colvalues) | |
read_pull_values (filename, parname) | |
get_args_options (options, usage) | |
append_result_column (table, results, name, unit, key) | |
append_model_par_column (table, model, results) | |
cscripts.ioutils.append_model_par_column | ( | table, | |
model, | |||
results ) |
Append model parameter column to FITS table Parameters ---------- table : `~gammalib.GFitsTable` FITS table model : `~gammalib.GModel` Model results : list of dict Parameter values
Definition at line 238 of file ioutils.py.
cscripts.ioutils.append_result_column | ( | table, | |
results, | |||
name, | |||
unit, | |||
key ) |
Append result column to FITS table Parameters ---------- table : `~gammalib.GFitsTable` FITS table results : list of dict Parameter values name : str Column name unit : str Column unit key : str Result key
Definition at line 200 of file ioutils.py.
cscripts.ioutils.get_args_options | ( | options, | |
usage ) |
Get arguments and options from argument list Parameters ---------- options : list of dict List of possible options and default values usage : str Usage string to be shown in case of a problem Returns ------- args, options : tuple of list and list of dict Arguments and updated list of options
Definition at line 125 of file ioutils.py.
cscripts.ioutils.read_pull_values | ( | filename, | |
parname ) |
Read pull values from pull distribution ASCII file Parameters ---------- filename : str Pull distribution ASCII file parname : str Parameter Returns ------- values : list of float List of pull values Raises ------ NameError
Definition at line 70 of file ioutils.py.
cscripts.ioutils.write_csv_row | ( | outfile, | |
row, | |||
colnames, | |||
colvalues ) |
Write one row into CSV file Parameters ---------- outfile : str Output file name row : int Row number colnames : list of str Column names colvalues : list of float Column values
Definition at line 28 of file ioutils.py.