ctools  2.0.0
 All Classes Namespaces Files Functions Variables Macros Pages
cscripts.csmodelselect.csmodelselect Class Reference
Inheritance diagram for cscripts.csmodelselect.csmodelselect:

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
 

Detailed Description

Selects model from a model definition XML file

Definition at line 29 of file csmodelselect.py.

Constructor & Destructor Documentation

def cscripts.csmodelselect.csmodelselect.__init__ (   self,
  argv 
)
Constructor

Definition at line 35 of file csmodelselect.py.

Member Function Documentation

def cscripts.csmodelselect.csmodelselect._select_model (   self,
  model,
  obs 
)
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().

def cscripts.csmodelselect.csmodelselect._set_model_parameters (   self,
  model 
)
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.save (   self)
Save model definition XML file

Definition at line 260 of file csmodelselect.py.

References cscripts.csmodelmerge.csmodelmerge._clobber.

Member Data Documentation


The documentation for this class was generated from the following file: