ctools 2.1.0.dev
|
Public Member Functions | |
__init__ (self, *argv) | |
process (self) | |
save (self) | |
Protected Member Functions | |
_get_parameters (self) | |
_compute_null_hypothesis (self) | |
Protected 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.
cscripts.cstsmapsplit.cstsmapsplit.__init__ | ( | self, | |
* | argv ) |
Constructor
Definition at line 43 of file cstsmapsplit.py.
|
protected |
Compute null hypothesis Returns ------- logl : float Log-likelihood of null hypothesis
Definition at line 92 of file cstsmapsplit.py.
References cscripts.cslightcrv.cslightcrv._srcname, cscripts.csphagen.csphagen._srcname, cscripts.csphasecrv.csphasecrv._srcname, cscripts.cssens.cssens._srcname, cscripts.cstsdist.cstsdist._srcname, cscripts.cstsmapsplit.cstsmapsplit._srcname, cscripts.csiactobs.csiactobs.obs(), cscripts.csobsdef.csobsdef.obs(), ctobservation.obs(), ctobservation.obs(), ctlikelihood.opt(), and ctlikelihood.opt().
Referenced by cscripts.cstsmapsplit.cstsmapsplit.process().
|
protected |
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.csobs2caldb.csobs2caldb._outfile, cscripts.cstsmapsplit.cstsmapsplit._outfile, cscripts.cstsmapsplit.cstsmapsplit._outmap, cscripts.cslightcrv.cslightcrv._srcname, cscripts.csphagen.csphagen._srcname, cscripts.csphasecrv.csphasecrv._srcname, cscripts.cssens.cssens._srcname, cscripts.cstsdist.cstsdist._srcname, cscripts.cstsmapsplit.cstsmapsplit._srcname, cscripts.csiactobs.csiactobs.obs(), cscripts.csobsdef.csobsdef.obs(), ctobservation.obs(), and ctobservation.obs().
Referenced by cscripts.csadd2caldb.csadd2caldb.process(), cscripts.csbkgmodel.csbkgmodel.process(), cscripts.cscaldb.cscaldb.process(), cscripts.csebins.csebins.process(), cscripts.csfindobs.csfindobs.process(), cscripts.csfootprint.csfootprint.process(), cscripts.csiactcopy.csiactcopy.process(), cscripts.csiactdata.csiactdata.process(), cscripts.csiactobs.csiactobs.process(), cscripts.cslightcrv.cslightcrv.process(), cscripts.csmodelinfo.csmodelinfo.process(), cscripts.csmodelmerge.csmodelmerge.process(), cscripts.csmodelselect.csmodelselect.process(), cscripts.csmodelsois.csmodelsois.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.csobsdef.csobsdef.process(), cscripts.csobsinfo.csobsinfo.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csphagen.csphagen.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.cspull.cspull.process(), cscripts.csresmap.csresmap.process(), cscripts.csresspec.csresspec.process(), cscripts.csroot2caldb.csroot2caldb.process(), cscripts.csscs.csscs.process(), cscripts.cssens.cssens.process(), cscripts.csspec.csspec.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cstsdist.cstsdist.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csviscube.csviscube.process(), and cscripts.csworkflow.csworkflow.process().
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.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.csiactdata.csiactdata._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), cscripts.cslightcrv.cslightcrv._get_parameters(), cscripts.csmodelinfo.csmodelinfo._get_parameters(), cscripts.csmodelmerge.csmodelmerge._get_parameters(), cscripts.csmodelselect.csmodelselect._get_parameters(), cscripts.csmodelsois.csmodelsois._get_parameters(), cscripts.csobs2caldb.csobs2caldb._get_parameters(), cscripts.csobsdef.csobsdef._get_parameters(), cscripts.csobsinfo.csobsinfo._get_parameters(), cscripts.csobsselect.csobsselect._get_parameters(), cscripts.csphagen.csphagen._get_parameters(), cscripts.csphasecrv.csphasecrv._get_parameters(), cscripts.cspull.cspull._get_parameters(), cscripts.csresmap.csresmap._get_parameters(), cscripts.csresspec.csresspec._get_parameters(), cscripts.csroot2caldb.csroot2caldb._get_parameters(), cscripts.csscs.csscs._get_parameters(), cscripts.cssens.cssens._get_parameters(), cscripts.csspec.csspec._get_parameters(), cscripts.cssrcdetect.cssrcdetect._get_parameters(), cscripts.cstsdist.cstsdist._get_parameters(), cscripts.cstsmapmerge.cstsmapmerge._get_parameters(), cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), cscripts.csviscube.csviscube._get_parameters(), cscripts.csworkflow.csworkflow._get_parameters(), cscripts.cssrcdetect.cssrcdetect._map, cscripts.cstsmapsplit.cstsmapsplit._map, cscripts.cstsmapsplit.cstsmapsplit._outmap, cscripts.cslightcrv.cslightcrv._srcname, cscripts.csphagen.csphagen._srcname, cscripts.csphasecrv.csphasecrv._srcname, cscripts.cssens.cssens._srcname, cscripts.cstsdist.cstsdist._srcname, cscripts.cstsmapsplit.cstsmapsplit._srcname, cscripts.csiactobs.csiactobs.obs(), cscripts.csobsdef.csobsdef.obs(), ctobservation.obs(), and ctobservation.obs().
cscripts.cstsmapsplit.cstsmapsplit.save | ( | self | ) |
Save commands to ASCII file
Definition at line 232 of file cstsmapsplit.py.
References cscripts.cstsmapsplit.cstsmapsplit._cmd, cscripts.csobs2caldb.csobs2caldb._outfile, and cscripts.cstsmapsplit.cstsmapsplit._outfile.
|
protected |
Definition at line 52 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), and cscripts.cstsmapsplit.cstsmapsplit.process().
|
protected |
Definition at line 56 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit.process(), and cscripts.cstsmapsplit.cstsmapsplit.save().
|
protected |
Definition at line 53 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), and cscripts.cstsmapsplit.cstsmapsplit.process().
|
protected |
Definition at line 55 of file cstsmapsplit.py.
Referenced by cscripts.cssrcdetect.cssrcdetect._get_parameters(), cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), cscripts.cssrcdetect.cssrcdetect.process(), and cscripts.cstsmapsplit.cstsmapsplit.process().
|
protected |
Definition at line 54 of file cstsmapsplit.py.
Referenced by cscripts.csobs2caldb.csobs2caldb._get_parameters(), cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), cscripts.csobs2caldb.csobs2caldb._make_caldb_index(), cscripts.csobs2caldb.csobs2caldb.save(), and cscripts.cstsmapsplit.cstsmapsplit.save().
|
protected |
Definition at line 51 of file cstsmapsplit.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), and cscripts.cstsmapsplit.cstsmapsplit.process().
|
protected |
Definition at line 57 of file cstsmapsplit.py.
Referenced by cscripts.cslightcrv.cslightcrv.__getstate__(), cscripts.csphagen.csphagen.__getstate__(), cscripts.csphasecrv.csphasecrv.__getstate__(), cscripts.cssens.cssens.__getstate__(), cscripts.cstsdist.cstsdist.__getstate__(), cscripts.cslightcrv.cslightcrv.__setstate__(), cscripts.csphagen.csphagen.__setstate__(), cscripts.csphasecrv.csphasecrv.__setstate__(), cscripts.cssens.cssens.__setstate__(), cscripts.cstsdist.cstsdist.__setstate__(), cscripts.cslightcrv.cslightcrv._adjust_model_pars(), cscripts.cstsmapsplit.cstsmapsplit._compute_null_hypothesis(), cscripts.cslightcrv.cslightcrv._compute_ulimit(), cscripts.csphasecrv.csphasecrv._create_fits(), cscripts.cssens.cssens._create_fits(), cscripts.cslightcrv.cslightcrv._create_fits_table(), cscripts.csphasecrv.csphasecrv._create_fits_table(), cscripts.cslightcrv.cslightcrv._get_free_par_names(), cscripts.csphasecrv.csphasecrv._get_free_par_names(), cscripts.cslightcrv.cslightcrv._get_parameters(), cscripts.csphagen.csphagen._get_parameters(), cscripts.csphasecrv.csphasecrv._get_parameters(), cscripts.cstsdist.cstsdist._get_parameters(), cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), cscripts.cssens.cssens._get_sensitivity(), cscripts.csphagen.csphagen._process_observation(), cscripts.cssens.cssens._set_source(), cscripts.cssens.cssens._set_src_prefactor(), cscripts.cssens.cssens._sim_evt_excess(), cscripts.cslightcrv.cslightcrv._timebin(), cscripts.cstsdist.cstsdist._trial(), cscripts.cssens.cssens.process(), cscripts.cstsdist.cstsdist.process(), and cscripts.cstsmapsplit.cstsmapsplit.process().