ctools
2.0.0
|
Public Member Functions | |
def | __init__ |
def | process |
def | save |
Private Member Functions | |
def | _get_parameters |
def | _compute_null_hypothesis |
Private Attributes | |
_outmap | |
_bins_per_job | |
_compute_null | |
_outfile | |
_map | |
_cmd | |
_srcname | |
Generates commands to split TS map computation This class implements the creation of file containing commands to split the computation of a TS map into several machines. It derives from the ctools.cscript class which provides support for parameter files, command line arguments, and logging. In that way the Python script behaves just as a regular ctool.
Definition at line 31 of file cstsmapsplit.py.
def cscripts.cstsmapsplit.cstsmapsplit.__init__ | ( | self, | |
argv | |||
) |
Constructor
Definition at line 43 of file cstsmapsplit.py.
|
private |
Compute null hypothesis Returns ------- logl : float Log-likelihood of null hypothesis
Definition at line 92 of file cstsmapsplit.py.
References cscripts.cstsdist.cstsdist._srcname, cscripts.csphagen.csphagen._srcname, cscripts.cstsmapsplit.cstsmapsplit._srcname, cscripts.cssens.cssens._srcname, cscripts.csphasecrv.csphasecrv._srcname, cscripts.cslightcrv.cslightcrv._srcname, ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), cscripts.csiactobs.csiactobs.obs(), and ctlikelihood.opt().
Referenced by cscripts.cstsmapsplit.cstsmapsplit.process().
|
private |
Get parameters from parfile and setup the observation
Definition at line 64 of file cstsmapsplit.py.
References cscripts.cstsmapsplit.cstsmapsplit._bins_per_job, cscripts.cstsmapsplit.cstsmapsplit._compute_null, cscripts.csscs.csscs._create_map(), cscripts.cssrcdetect.cssrcdetect._map, cscripts.cstsmapsplit.cstsmapsplit._map, cscripts.cstsmapsplit.cstsmapsplit._outfile, cscripts.csobs2caldb.csobs2caldb._outfile, cscripts.cstsmapsplit.cstsmapsplit._outmap, cscripts.cstsdist.cstsdist._srcname, cscripts.csphagen.csphagen._srcname, cscripts.cssens.cssens._srcname, cscripts.cstsmapsplit.cstsmapsplit._srcname, cscripts.csphasecrv.csphasecrv._srcname, cscripts.cslightcrv.cslightcrv._srcname, ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().
Referenced by cscript_base.cscript_base.process(), cscript_like.cscript_like.process(), cscript_obs.cscript_obs.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csworkflow.csworkflow.process(), and cscripts.csviscube.csviscube.process().
def cscripts.cstsmapsplit.cstsmapsplit.process | ( | self | ) |
Process the script
Definition at line 124 of file cstsmapsplit.py.
References cscripts.cstsmapsplit.cstsmapsplit._bins_per_job, cscripts.cstsmapsplit.cstsmapsplit._cmd, cscripts.cstsmapsplit.cstsmapsplit._compute_null, cscripts.cstsmapsplit.cstsmapsplit._compute_null_hypothesis(), cscripts.csobsselect.csobsselect._get_parameters(), cscripts.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.csmodelselect.csmodelselect._get_parameters(), cscripts.csroot2caldb.csroot2caldb._get_parameters(), cscripts.csresmap.csresmap._get_parameters(), cscripts.csresspec.csresspec._get_parameters(), cscripts.csmodelinfo.csmodelinfo._get_parameters(), cscripts.csmodelmerge.csmodelmerge._get_parameters(), cscripts.csobsinfo.csobsinfo._get_parameters(), cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csiactdata.csiactdata._get_parameters(), cscripts.cstsmapmerge.cstsmapmerge._get_parameters(), cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.cssrcdetect.cssrcdetect._get_parameters(), cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csmodelsois.csmodelsois._get_parameters(), cscripts.csobs2caldb.csobs2caldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.cspull.cspull._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), cscripts.cstsdist.cstsdist._get_parameters(), cscripts.csobsdef.csobsdef._get_parameters(), cscripts.csspec.csspec._get_parameters(), cscripts.cssens.cssens._get_parameters(), cscripts.csphasecrv.csphasecrv._get_parameters(), cscripts.cslightcrv.cslightcrv._get_parameters(), cscripts.csscs.csscs._get_parameters(), cscripts.csphagen.csphagen._get_parameters(), cscripts.cstsdist.cstsdist._srcname, cscripts.csphagen.csphagen._srcname, cscripts.cstsmapsplit.cstsmapsplit._srcname, cscripts.cssens.cssens._srcname, cscripts.csphasecrv.csphasecrv._srcname, cscripts.cslightcrv.cslightcrv._srcname, ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().
def cscripts.cstsmapsplit.cstsmapsplit.save | ( | self | ) |
Save commands to ASCII file
Definition at line 232 of file cstsmapsplit.py.
References cscripts.cstsmapsplit.cstsmapsplit._cmd.
|
private |
Definition at line 52 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), and cscripts.cstsmapsplit.cstsmapsplit.process().
|
private |
Definition at line 56 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit.process(), and cscripts.cstsmapsplit.cstsmapsplit.save().
|
private |
Definition at line 53 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), and cscripts.cstsmapsplit.cstsmapsplit.process().
|
private |
Definition at line 55 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._get_parameters().
|
private |
Definition at line 54 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._get_parameters().
|
private |
Definition at line 51 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._get_parameters().
|
private |
Definition at line 57 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._compute_null_hypothesis(), cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), and cscripts.cstsmapsplit.cstsmapsplit.process().