ctools
2.0.0
|
Functions | |
def | write_csv_row |
def | read_pull_values |
def | get_args_options |
def | append_result_column |
def | append_model_par_column |
def 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.
def 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.
def 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.
def 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.
def 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.