ctools
2.0.0
|
Public Member Functions | |
def | __init__ |
def | process |
def | save |
Private Member Functions | |
def | _get_parameters |
def | _select_model |
def | _set_model_parameters |
Private Attributes | |
_models | |
Selects model from a model definition XML file
Definition at line 29 of file csmodelselect.py.
def cscripts.csmodelselect.csmodelselect.__init__ | ( | self, | |
argv | |||
) |
Constructor
Definition at line 35 of file csmodelselect.py.
|
private |
Get parameters from parfile and setup the observation
Definition at line 51 of file csmodelselect.py.
References cscripts.csbkgmodel.csbkgmodel._models, cscripts.csmodelselect.csmodelselect._models, cscripts.csmodelmerge.csmodelmerge._models, cscripts.csmodelinfo.csmodelinfo._models, cscripts.csiactobs.csiactobs._models, ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().
Referenced by cscripts.csobsinfo.csobsinfo.process(), cscript_base.cscript_base.process(), cscript_like.cscript_like.process(), cscript_obs.cscript_obs.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csresmap.csresmap.process(), cscripts.csmodelsois.csmodelsois.process(), cscripts.csobsdef.csobsdef.process(), cscripts.csmodelselect.csmodelselect.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csworkflow.csworkflow.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.cstsdist.cstsdist.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cspull.cspull.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.csviscube.csviscube.process(), cscripts.csresspec.csresspec.process(), cscripts.csscs.csscs.process(), cscripts.csphagen.csphagen.process(), cscripts.cssens.cssens.process(), cscripts.csspec.csspec.process(), and cscripts.csroot2caldb.csroot2caldb.process().
|
private |
Select model Parameters ---------- model : `~gammalib.GModel` Model obs : `~gammalib.GObservations` Observation container Returns ------- select : bool Model selection flag
Definition at line 86 of file csmodelselect.py.
Referenced by cscripts.csmodelselect.csmodelselect.process().
|
private |
Set model parameters Parameters ---------- model : `~gammalib.GModel` Model Returns ------- model : `~gammalib.GModel` Model with parameter set
Definition at line 171 of file csmodelselect.py.
Referenced by cscripts.csmodelselect.csmodelselect.process().
def cscripts.csmodelselect.csmodelselect.process | ( | self | ) |
Process the script
Definition at line 219 of file csmodelselect.py.
References cscripts.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.csmodelselect.csmodelselect._get_parameters(), cscripts.csmodelinfo.csmodelinfo._get_parameters(), cscripts.csmodelmerge.csmodelmerge._get_parameters(), cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csiactdata.csiactdata._get_parameters(), cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), cscripts.cslightcrv.cslightcrv._get_parameters(), cscripts.csbkgmodel.csbkgmodel._models, cscripts.csmodelselect.csmodelselect._models, cscripts.csmodelmerge.csmodelmerge._models, cscripts.csmodelinfo.csmodelinfo._models, cscripts.csiactobs.csiactobs._models, cscripts.csmodelselect.csmodelselect._select_model(), cscripts.csmodelselect.csmodelselect._set_model_parameters(), ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().
def cscripts.csmodelselect.csmodelselect.save | ( | self | ) |
Save model definition XML file
Definition at line 260 of file csmodelselect.py.
References cscripts.csmodelmerge.csmodelmerge._clobber.
|
private |
Definition at line 44 of file csmodelselect.py.
Referenced by cscripts.csphagen.csphagen.__getstate__(), cscripts.cssens.cssens.__getstate__(), cscripts.cssens.cssens.__setstate__(), cscripts.csphagen.csphagen.__setstate__(), cscripts.cssens.cssens._e_bin(), cscripts.csmodelsois.csmodelsois._gen_cubemodel(), cscripts.csmodelselect.csmodelselect._get_parameters(), cscripts.csphagen.csphagen._get_parameters(), cscripts.csphagen.csphagen._process_observation(), cscripts.csphagen.csphagen._set_models(), cscripts.csmodelsois.csmodelsois.models(), cscripts.cssrcdetect.cssrcdetect.models(), cscripts.csmodelselect.csmodelselect.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cssens.cssens.process(), cscripts.csmodelsois.csmodelsois.save(), and cscripts.cssrcdetect.cssrcdetect.save().