ctools  2.1.0.dev
 All Classes Namespaces Files Functions Variables Macros Pages
tools.py
Go to the documentation of this file.
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.10
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 from sys import version_info
10 if version_info >= (2,6,0):
11  def swig_import_helper():
12  from os.path import dirname
13  import imp
14  fp = None
15  try:
16  fp, pathname, description = imp.find_module('_tools', [dirname(__file__)])
17  except ImportError:
18  import _tools
19  return _tools
20  if fp is not None:
21  try:
22  _mod = imp.load_module('_tools', fp, pathname, description)
23  finally:
24  fp.close()
25  return _mod
26  _tools = swig_import_helper()
27  del swig_import_helper
28 else:
29  import _tools
30 del version_info
31 try:
32  _swig_property = property
33 except NameError:
34  pass # Python < 2.2 doesn't have 'property'.
35 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
36  if (name == "thisown"): return self.this.own(value)
37  if (name == "this"):
38  if type(value).__name__ == 'SwigPyObject':
39  self.__dict__[name] = value
40  return
41  method = class_type.__swig_setmethods__.get(name,None)
42  if method: return method(self,value)
43  if (not static):
44  self.__dict__[name] = value
45  else:
46  raise AttributeError("You cannot add attributes to %s" % self)
47 
48 def _swig_setattr(self,class_type,name,value):
49  return _swig_setattr_nondynamic(self,class_type,name,value,0)
50 
51 def _swig_getattr(self,class_type,name):
52  if (name == "thisown"): return self.this.own()
53  method = class_type.__swig_getmethods__.get(name,None)
54  if method: return method(self)
55  raise AttributeError(name)
56 
57 def _swig_repr(self):
58  try: strthis = "proxy of " + self.this.__repr__()
59  except: strthis = ""
60  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
61 
62 try:
63  _object = object
64  _newclass = 1
65 except AttributeError:
66  class _object : pass
67  _newclass = 0
68 
69 
70 class SwigPyIterator(_object):
71  """Proxy of C++ swig::SwigPyIterator class"""
72  __swig_setmethods__ = {}
73  __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
74  __swig_getmethods__ = {}
75  __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
76  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
77  __repr__ = _swig_repr
78  __swig_destroy__ = _tools.delete_SwigPyIterator
79  __del__ = lambda self : None;
80  def value(self):
81  """value(SwigPyIterator self) -> PyObject *"""
82  return _tools.SwigPyIterator_value(self)
83 
84  def incr(self, n=1):
85  """
86  incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
87  incr(SwigPyIterator self) -> SwigPyIterator
88  """
89  return _tools.SwigPyIterator_incr(self, n)
90 
91  def decr(self, n=1):
92  """
93  decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
94  decr(SwigPyIterator self) -> SwigPyIterator
95  """
96  return _tools.SwigPyIterator_decr(self, n)
97 
98  def distance(self, *args):
99  """distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
100  return _tools.SwigPyIterator_distance(self, *args)
101 
102  def equal(self, *args):
103  """equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
104  return _tools.SwigPyIterator_equal(self, *args)
105 
106  def copy(self):
107  """copy(SwigPyIterator self) -> SwigPyIterator"""
108  return _tools.SwigPyIterator_copy(self)
109 
110  def next(self):
111  """next(SwigPyIterator self) -> PyObject *"""
112  return _tools.SwigPyIterator_next(self)
113 
114  def __next__(self):
115  """__next__(SwigPyIterator self) -> PyObject *"""
116  return _tools.SwigPyIterator___next__(self)
117 
118  def previous(self):
119  """previous(SwigPyIterator self) -> PyObject *"""
120  return _tools.SwigPyIterator_previous(self)
121 
122  def advance(self, *args):
123  """advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
124  return _tools.SwigPyIterator_advance(self, *args)
125 
126  def __eq__(self, *args):
127  """__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
128  return _tools.SwigPyIterator___eq__(self, *args)
129 
130  def __ne__(self, *args):
131  """__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
132  return _tools.SwigPyIterator___ne__(self, *args)
133 
134  def __iadd__(self, *args):
135  """__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
136  return _tools.SwigPyIterator___iadd__(self, *args)
137 
138  def __isub__(self, *args):
139  """__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
140  return _tools.SwigPyIterator___isub__(self, *args)
141 
142  def __add__(self, *args):
143  """__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
144  return _tools.SwigPyIterator___add__(self, *args)
145 
146  def __sub__(self, *args):
147  """
148  __sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
149  __sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
150  """
151  return _tools.SwigPyIterator___sub__(self, *args)
152 
153  def __iter__(self): return self
154 SwigPyIterator_swigregister = _tools.SwigPyIterator_swigregister
155 SwigPyIterator_swigregister(SwigPyIterator)
156 
157 class vector_int(_object):
158  """Proxy of C++ std::vector<(int)> class"""
159  __swig_setmethods__ = {}
160  __setattr__ = lambda self, name, value: _swig_setattr(self, vector_int, name, value)
161  __swig_getmethods__ = {}
162  __getattr__ = lambda self, name: _swig_getattr(self, vector_int, name)
163  __repr__ = _swig_repr
164  def iterator(self):
165  """iterator(vector_int self) -> SwigPyIterator"""
166  return _tools.vector_int_iterator(self)
167 
168  def __iter__(self): return self.iterator()
169  def __nonzero__(self):
170  """__nonzero__(vector_int self) -> bool"""
171  return _tools.vector_int___nonzero__(self)
172 
173  def __bool__(self):
174  """__bool__(vector_int self) -> bool"""
175  return _tools.vector_int___bool__(self)
176 
177  def __len__(self):
178  """__len__(vector_int self) -> std::vector< int >::size_type"""
179  return _tools.vector_int___len__(self)
180 
181  def pop(self):
182  """pop(vector_int self) -> std::vector< int >::value_type"""
183  return _tools.vector_int_pop(self)
184 
185  def __getslice__(self, *args):
186  """__getslice__(vector_int self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> vector_int"""
187  return _tools.vector_int___getslice__(self, *args)
188 
189  def __setslice__(self, *args):
190  """
191  __setslice__(vector_int self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, vector_int v=std::vector< int,std::allocator< int > >())
192  __setslice__(vector_int self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
193  """
194  return _tools.vector_int___setslice__(self, *args)
195 
196  def __delslice__(self, *args):
197  """__delslice__(vector_int self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
198  return _tools.vector_int___delslice__(self, *args)
199 
200  def __delitem__(self, *args):
201  """
202  __delitem__(vector_int self, std::vector< int >::difference_type i)
203  __delitem__(vector_int self, PySliceObject * slice)
204  """
205  return _tools.vector_int___delitem__(self, *args)
206 
207  def __getitem__(self, *args):
208  """
209  __getitem__(vector_int self, PySliceObject * slice) -> vector_int
210  __getitem__(vector_int self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
211  """
212  return _tools.vector_int___getitem__(self, *args)
213 
214  def __setitem__(self, *args):
215  """
216  __setitem__(vector_int self, PySliceObject * slice, vector_int v)
217  __setitem__(vector_int self, PySliceObject * slice)
218  __setitem__(vector_int self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
219  """
220  return _tools.vector_int___setitem__(self, *args)
221 
222  def append(self, *args):
223  """append(vector_int self, std::vector< int >::value_type const & x)"""
224  return _tools.vector_int_append(self, *args)
225 
226  def empty(self):
227  """empty(vector_int self) -> bool"""
228  return _tools.vector_int_empty(self)
229 
230  def size(self):
231  """size(vector_int self) -> std::vector< int >::size_type"""
232  return _tools.vector_int_size(self)
233 
234  def clear(self):
235  """clear(vector_int self)"""
236  return _tools.vector_int_clear(self)
237 
238  def swap(self, *args):
239  """swap(vector_int self, vector_int v)"""
240  return _tools.vector_int_swap(self, *args)
241 
242  def get_allocator(self):
243  """get_allocator(vector_int self) -> std::vector< int >::allocator_type"""
244  return _tools.vector_int_get_allocator(self)
245 
246  def begin(self):
247  """begin(vector_int self) -> std::vector< int >::iterator"""
248  return _tools.vector_int_begin(self)
249 
250  def end(self):
251  """end(vector_int self) -> std::vector< int >::iterator"""
252  return _tools.vector_int_end(self)
253 
254  def rbegin(self):
255  """rbegin(vector_int self) -> std::vector< int >::reverse_iterator"""
256  return _tools.vector_int_rbegin(self)
257 
258  def rend(self):
259  """rend(vector_int self) -> std::vector< int >::reverse_iterator"""
260  return _tools.vector_int_rend(self)
261 
262  def pop_back(self):
263  """pop_back(vector_int self)"""
264  return _tools.vector_int_pop_back(self)
265 
266  def erase(self, *args):
267  """
268  erase(vector_int self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
269  erase(vector_int self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
270  """
271  return _tools.vector_int_erase(self, *args)
272 
273  def __init__(self, *args):
274  """
275  __init__(std::vector<(int)> self) -> vector_int
276  __init__(std::vector<(int)> self, vector_int arg2) -> vector_int
277  __init__(std::vector<(int)> self, std::vector< int >::size_type size) -> vector_int
278  __init__(std::vector<(int)> self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> vector_int
279  """
280  this = _tools.new_vector_int(*args)
281  try: self.this.append(this)
282  except: self.this = this
283  def push_back(self, *args):
284  """push_back(vector_int self, std::vector< int >::value_type const & x)"""
285  return _tools.vector_int_push_back(self, *args)
286 
287  def front(self):
288  """front(vector_int self) -> std::vector< int >::value_type const &"""
289  return _tools.vector_int_front(self)
290 
291  def back(self):
292  """back(vector_int self) -> std::vector< int >::value_type const &"""
293  return _tools.vector_int_back(self)
294 
295  def assign(self, *args):
296  """assign(vector_int self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
297  return _tools.vector_int_assign(self, *args)
298 
299  def resize(self, *args):
300  """
301  resize(vector_int self, std::vector< int >::size_type new_size)
302  resize(vector_int self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
303  """
304  return _tools.vector_int_resize(self, *args)
305 
306  def insert(self, *args):
307  """
308  insert(vector_int self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
309  insert(vector_int self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
310  """
311  return _tools.vector_int_insert(self, *args)
312 
313  def reserve(self, *args):
314  """reserve(vector_int self, std::vector< int >::size_type n)"""
315  return _tools.vector_int_reserve(self, *args)
316 
317  def capacity(self):
318  """capacity(vector_int self) -> std::vector< int >::size_type"""
319  return _tools.vector_int_capacity(self)
320 
321  __swig_destroy__ = _tools.delete_vector_int
322  __del__ = lambda self : None;
323 vector_int_swigregister = _tools.vector_int_swigregister
324 vector_int_swigregister(vector_int)
325 
326 class vector_double(_object):
327  """Proxy of C++ std::vector<(double)> class"""
328  __swig_setmethods__ = {}
329  __setattr__ = lambda self, name, value: _swig_setattr(self, vector_double, name, value)
330  __swig_getmethods__ = {}
331  __getattr__ = lambda self, name: _swig_getattr(self, vector_double, name)
332  __repr__ = _swig_repr
333  def iterator(self):
334  """iterator(vector_double self) -> SwigPyIterator"""
335  return _tools.vector_double_iterator(self)
336 
337  def __iter__(self): return self.iterator()
338  def __nonzero__(self):
339  """__nonzero__(vector_double self) -> bool"""
340  return _tools.vector_double___nonzero__(self)
341 
342  def __bool__(self):
343  """__bool__(vector_double self) -> bool"""
344  return _tools.vector_double___bool__(self)
345 
346  def __len__(self):
347  """__len__(vector_double self) -> std::vector< double >::size_type"""
348  return _tools.vector_double___len__(self)
349 
350  def pop(self):
351  """pop(vector_double self) -> std::vector< double >::value_type"""
352  return _tools.vector_double_pop(self)
353 
354  def __getslice__(self, *args):
355  """__getslice__(vector_double self, std::vector< double >::difference_type i, std::vector< double >::difference_type j) -> vector_double"""
356  return _tools.vector_double___getslice__(self, *args)
357 
358  def __setslice__(self, *args):
359  """
360  __setslice__(vector_double self, std::vector< double >::difference_type i, std::vector< double >::difference_type j,
361  vector_double v=std::vector< double,std::allocator< double > >())
362  __setslice__(vector_double self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)
363  """
364  return _tools.vector_double___setslice__(self, *args)
365 
366  def __delslice__(self, *args):
367  """__delslice__(vector_double self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)"""
368  return _tools.vector_double___delslice__(self, *args)
369 
370  def __delitem__(self, *args):
371  """
372  __delitem__(vector_double self, std::vector< double >::difference_type i)
373  __delitem__(vector_double self, PySliceObject * slice)
374  """
375  return _tools.vector_double___delitem__(self, *args)
376 
377  def __getitem__(self, *args):
378  """
379  __getitem__(vector_double self, PySliceObject * slice) -> vector_double
380  __getitem__(vector_double self, std::vector< double >::difference_type i) -> std::vector< double >::value_type const &
381  """
382  return _tools.vector_double___getitem__(self, *args)
383 
384  def __setitem__(self, *args):
385  """
386  __setitem__(vector_double self, PySliceObject * slice, vector_double v)
387  __setitem__(vector_double self, PySliceObject * slice)
388  __setitem__(vector_double self, std::vector< double >::difference_type i, std::vector< double >::value_type const & x)
389  """
390  return _tools.vector_double___setitem__(self, *args)
391 
392  def append(self, *args):
393  """append(vector_double self, std::vector< double >::value_type const & x)"""
394  return _tools.vector_double_append(self, *args)
395 
396  def empty(self):
397  """empty(vector_double self) -> bool"""
398  return _tools.vector_double_empty(self)
399 
400  def size(self):
401  """size(vector_double self) -> std::vector< double >::size_type"""
402  return _tools.vector_double_size(self)
403 
404  def clear(self):
405  """clear(vector_double self)"""
406  return _tools.vector_double_clear(self)
407 
408  def swap(self, *args):
409  """swap(vector_double self, vector_double v)"""
410  return _tools.vector_double_swap(self, *args)
411 
412  def get_allocator(self):
413  """get_allocator(vector_double self) -> std::vector< double >::allocator_type"""
414  return _tools.vector_double_get_allocator(self)
415 
416  def begin(self):
417  """begin(vector_double self) -> std::vector< double >::iterator"""
418  return _tools.vector_double_begin(self)
419 
420  def end(self):
421  """end(vector_double self) -> std::vector< double >::iterator"""
422  return _tools.vector_double_end(self)
423 
424  def rbegin(self):
425  """rbegin(vector_double self) -> std::vector< double >::reverse_iterator"""
426  return _tools.vector_double_rbegin(self)
427 
428  def rend(self):
429  """rend(vector_double self) -> std::vector< double >::reverse_iterator"""
430  return _tools.vector_double_rend(self)
431 
432  def pop_back(self):
433  """pop_back(vector_double self)"""
434  return _tools.vector_double_pop_back(self)
435 
436  def erase(self, *args):
437  """
438  erase(vector_double self, std::vector< double >::iterator pos) -> std::vector< double >::iterator
439  erase(vector_double self, std::vector< double >::iterator first, std::vector< double >::iterator last) -> std::vector< double >::iterator
440  """
441  return _tools.vector_double_erase(self, *args)
442 
443  def __init__(self, *args):
444  """
445  __init__(std::vector<(double)> self) -> vector_double
446  __init__(std::vector<(double)> self, vector_double arg2) -> vector_double
447  __init__(std::vector<(double)> self, std::vector< double >::size_type size) -> vector_double
448  __init__(std::vector<(double)> self, std::vector< double >::size_type size, std::vector< double >::value_type const & value) -> vector_double
449  """
450  this = _tools.new_vector_double(*args)
451  try: self.this.append(this)
452  except: self.this = this
453  def push_back(self, *args):
454  """push_back(vector_double self, std::vector< double >::value_type const & x)"""
455  return _tools.vector_double_push_back(self, *args)
456 
457  def front(self):
458  """front(vector_double self) -> std::vector< double >::value_type const &"""
459  return _tools.vector_double_front(self)
460 
461  def back(self):
462  """back(vector_double self) -> std::vector< double >::value_type const &"""
463  return _tools.vector_double_back(self)
464 
465  def assign(self, *args):
466  """assign(vector_double self, std::vector< double >::size_type n, std::vector< double >::value_type const & x)"""
467  return _tools.vector_double_assign(self, *args)
468 
469  def resize(self, *args):
470  """
471  resize(vector_double self, std::vector< double >::size_type new_size)
472  resize(vector_double self, std::vector< double >::size_type new_size, std::vector< double >::value_type const & x)
473  """
474  return _tools.vector_double_resize(self, *args)
475 
476  def insert(self, *args):
477  """
478  insert(vector_double self, std::vector< double >::iterator pos, std::vector< double >::value_type const & x) -> std::vector< double >::iterator
479  insert(vector_double self, std::vector< double >::iterator pos, std::vector< double >::size_type n, std::vector< double >::value_type const & x)
480  """
481  return _tools.vector_double_insert(self, *args)
482 
483  def reserve(self, *args):
484  """reserve(vector_double self, std::vector< double >::size_type n)"""
485  return _tools.vector_double_reserve(self, *args)
486 
487  def capacity(self):
488  """capacity(vector_double self) -> std::vector< double >::size_type"""
489  return _tools.vector_double_capacity(self)
490 
491  __swig_destroy__ = _tools.delete_vector_double
492  __del__ = lambda self : None;
493 vector_double_swigregister = _tools.vector_double_swigregister
494 vector_double_swigregister(vector_double)
495 
496 class vector_bool(_object):
497  """Proxy of C++ std::vector<(bool)> class"""
498  __swig_setmethods__ = {}
499  __setattr__ = lambda self, name, value: _swig_setattr(self, vector_bool, name, value)
500  __swig_getmethods__ = {}
501  __getattr__ = lambda self, name: _swig_getattr(self, vector_bool, name)
502  __repr__ = _swig_repr
503  def iterator(self):
504  """iterator(vector_bool self) -> SwigPyIterator"""
505  return _tools.vector_bool_iterator(self)
506 
507  def __iter__(self): return self.iterator()
508  def __nonzero__(self):
509  """__nonzero__(vector_bool self) -> bool"""
510  return _tools.vector_bool___nonzero__(self)
511 
512  def __bool__(self):
513  """__bool__(vector_bool self) -> bool"""
514  return _tools.vector_bool___bool__(self)
515 
516  def __len__(self):
517  """__len__(vector_bool self) -> std::vector< bool >::size_type"""
518  return _tools.vector_bool___len__(self)
519 
520  def pop(self):
521  """pop(vector_bool self) -> std::vector< bool >::value_type"""
522  return _tools.vector_bool_pop(self)
523 
524  def __getslice__(self, *args):
525  """__getslice__(vector_bool self, std::vector< bool >::difference_type i, std::vector< bool >::difference_type j) -> vector_bool"""
526  return _tools.vector_bool___getslice__(self, *args)
527 
528  def __setslice__(self, *args):
529  """
530  __setslice__(vector_bool self, std::vector< bool >::difference_type i, std::vector< bool >::difference_type j, vector_bool v=std::vector< bool,std::allocator< bool > >())
531  __setslice__(vector_bool self, std::vector< bool >::difference_type i, std::vector< bool >::difference_type j)
532  """
533  return _tools.vector_bool___setslice__(self, *args)
534 
535  def __delslice__(self, *args):
536  """__delslice__(vector_bool self, std::vector< bool >::difference_type i, std::vector< bool >::difference_type j)"""
537  return _tools.vector_bool___delslice__(self, *args)
538 
539  def __delitem__(self, *args):
540  """
541  __delitem__(vector_bool self, std::vector< bool >::difference_type i)
542  __delitem__(vector_bool self, PySliceObject * slice)
543  """
544  return _tools.vector_bool___delitem__(self, *args)
545 
546  def __getitem__(self, *args):
547  """
548  __getitem__(vector_bool self, PySliceObject * slice) -> vector_bool
549  __getitem__(vector_bool self, std::vector< bool >::difference_type i) -> std::vector< bool >::value_type
550  """
551  return _tools.vector_bool___getitem__(self, *args)
552 
553  def __setitem__(self, *args):
554  """
555  __setitem__(vector_bool self, PySliceObject * slice, vector_bool v)
556  __setitem__(vector_bool self, PySliceObject * slice)
557  __setitem__(vector_bool self, std::vector< bool >::difference_type i, std::vector< bool >::value_type x)
558  """
559  return _tools.vector_bool___setitem__(self, *args)
560 
561  def append(self, *args):
562  """append(vector_bool self, std::vector< bool >::value_type x)"""
563  return _tools.vector_bool_append(self, *args)
564 
565  def empty(self):
566  """empty(vector_bool self) -> bool"""
567  return _tools.vector_bool_empty(self)
568 
569  def size(self):
570  """size(vector_bool self) -> std::vector< bool >::size_type"""
571  return _tools.vector_bool_size(self)
572 
573  def clear(self):
574  """clear(vector_bool self)"""
575  return _tools.vector_bool_clear(self)
576 
577  def swap(self, *args):
578  """swap(vector_bool self, vector_bool v)"""
579  return _tools.vector_bool_swap(self, *args)
580 
581  def get_allocator(self):
582  """get_allocator(vector_bool self) -> std::vector< bool >::allocator_type"""
583  return _tools.vector_bool_get_allocator(self)
584 
585  def begin(self):
586  """begin(vector_bool self) -> std::vector< bool >::iterator"""
587  return _tools.vector_bool_begin(self)
588 
589  def end(self):
590  """end(vector_bool self) -> std::vector< bool >::iterator"""
591  return _tools.vector_bool_end(self)
592 
593  def rbegin(self):
594  """rbegin(vector_bool self) -> std::vector< bool >::reverse_iterator"""
595  return _tools.vector_bool_rbegin(self)
596 
597  def rend(self):
598  """rend(vector_bool self) -> std::vector< bool >::reverse_iterator"""
599  return _tools.vector_bool_rend(self)
600 
601  def pop_back(self):
602  """pop_back(vector_bool self)"""
603  return _tools.vector_bool_pop_back(self)
604 
605  def erase(self, *args):
606  """
607  erase(vector_bool self, std::vector< bool >::iterator pos) -> std::vector< bool >::iterator
608  erase(vector_bool self, std::vector< bool >::iterator first, std::vector< bool >::iterator last) -> std::vector< bool >::iterator
609  """
610  return _tools.vector_bool_erase(self, *args)
611 
612  def __init__(self, *args):
613  """
614  __init__(std::vector<(bool)> self) -> vector_bool
615  __init__(std::vector<(bool)> self, vector_bool arg2) -> vector_bool
616  __init__(std::vector<(bool)> self, std::vector< bool >::size_type size) -> vector_bool
617  __init__(std::vector<(bool)> self, std::vector< bool >::size_type size, std::vector< bool >::value_type value) -> vector_bool
618  """
619  this = _tools.new_vector_bool(*args)
620  try: self.this.append(this)
621  except: self.this = this
622  def push_back(self, *args):
623  """push_back(vector_bool self, std::vector< bool >::value_type x)"""
624  return _tools.vector_bool_push_back(self, *args)
625 
626  def front(self):
627  """front(vector_bool self) -> std::vector< bool >::value_type"""
628  return _tools.vector_bool_front(self)
629 
630  def back(self):
631  """back(vector_bool self) -> std::vector< bool >::value_type"""
632  return _tools.vector_bool_back(self)
633 
634  def assign(self, *args):
635  """assign(vector_bool self, std::vector< bool >::size_type n, std::vector< bool >::value_type x)"""
636  return _tools.vector_bool_assign(self, *args)
637 
638  def resize(self, *args):
639  """
640  resize(vector_bool self, std::vector< bool >::size_type new_size)
641  resize(vector_bool self, std::vector< bool >::size_type new_size, std::vector< bool >::value_type x)
642  """
643  return _tools.vector_bool_resize(self, *args)
644 
645  def insert(self, *args):
646  """
647  insert(vector_bool self, std::vector< bool >::iterator pos, std::vector< bool >::value_type x) -> std::vector< bool >::iterator
648  insert(vector_bool self, std::vector< bool >::iterator pos, std::vector< bool >::size_type n, std::vector< bool >::value_type x)
649  """
650  return _tools.vector_bool_insert(self, *args)
651 
652  def reserve(self, *args):
653  """reserve(vector_bool self, std::vector< bool >::size_type n)"""
654  return _tools.vector_bool_reserve(self, *args)
655 
656  def capacity(self):
657  """capacity(vector_bool self) -> std::vector< bool >::size_type"""
658  return _tools.vector_bool_capacity(self)
659 
660  __swig_destroy__ = _tools.delete_vector_bool
661  __del__ = lambda self : None;
662 vector_bool_swigregister = _tools.vector_bool_swigregister
663 vector_bool_swigregister(vector_bool)
664 
665 class vector_sring(_object):
666  """Proxy of C++ std::vector<(std::string)> class"""
667  __swig_setmethods__ = {}
668  __setattr__ = lambda self, name, value: _swig_setattr(self, vector_sring, name, value)
669  __swig_getmethods__ = {}
670  __getattr__ = lambda self, name: _swig_getattr(self, vector_sring, name)
671  __repr__ = _swig_repr
672  def iterator(self):
673  """iterator(vector_sring self) -> SwigPyIterator"""
674  return _tools.vector_sring_iterator(self)
675 
676  def __iter__(self): return self.iterator()
677  def __nonzero__(self):
678  """__nonzero__(vector_sring self) -> bool"""
679  return _tools.vector_sring___nonzero__(self)
680 
681  def __bool__(self):
682  """__bool__(vector_sring self) -> bool"""
683  return _tools.vector_sring___bool__(self)
684 
685  def __len__(self):
686  """__len__(vector_sring self) -> std::vector< std::string >::size_type"""
687  return _tools.vector_sring___len__(self)
688 
689  def pop(self):
690  """pop(vector_sring self) -> std::vector< std::string >::value_type"""
691  return _tools.vector_sring_pop(self)
692 
693  def __getslice__(self, *args):
694  """__getslice__(vector_sring self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j) -> vector_sring"""
695  return _tools.vector_sring___getslice__(self, *args)
696 
697  def __setslice__(self, *args):
698  """
699  __setslice__(vector_sring self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j,
700  vector_sring v=std::vector< std::string,std::allocator< std::string > >())
701  __setslice__(vector_sring self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j)
702  """
703  return _tools.vector_sring___setslice__(self, *args)
704 
705  def __delslice__(self, *args):
706  """__delslice__(vector_sring self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j)"""
707  return _tools.vector_sring___delslice__(self, *args)
708 
709  def __delitem__(self, *args):
710  """
711  __delitem__(vector_sring self, std::vector< std::string >::difference_type i)
712  __delitem__(vector_sring self, PySliceObject * slice)
713  """
714  return _tools.vector_sring___delitem__(self, *args)
715 
716  def __getitem__(self, *args):
717  """
718  __getitem__(vector_sring self, PySliceObject * slice) -> vector_sring
719  __getitem__(vector_sring self, std::vector< std::string >::difference_type i) -> std::vector< std::string >::value_type const &
720  """
721  return _tools.vector_sring___getitem__(self, *args)
722 
723  def __setitem__(self, *args):
724  """
725  __setitem__(vector_sring self, PySliceObject * slice, vector_sring v)
726  __setitem__(vector_sring self, PySliceObject * slice)
727  __setitem__(vector_sring self, std::vector< std::string >::difference_type i, std::vector< std::string >::value_type const & x)
728  """
729  return _tools.vector_sring___setitem__(self, *args)
730 
731  def append(self, *args):
732  """append(vector_sring self, std::vector< std::string >::value_type const & x)"""
733  return _tools.vector_sring_append(self, *args)
734 
735  def empty(self):
736  """empty(vector_sring self) -> bool"""
737  return _tools.vector_sring_empty(self)
738 
739  def size(self):
740  """size(vector_sring self) -> std::vector< std::string >::size_type"""
741  return _tools.vector_sring_size(self)
742 
743  def clear(self):
744  """clear(vector_sring self)"""
745  return _tools.vector_sring_clear(self)
746 
747  def swap(self, *args):
748  """swap(vector_sring self, vector_sring v)"""
749  return _tools.vector_sring_swap(self, *args)
750 
751  def get_allocator(self):
752  """get_allocator(vector_sring self) -> std::vector< std::string >::allocator_type"""
753  return _tools.vector_sring_get_allocator(self)
754 
755  def begin(self):
756  """begin(vector_sring self) -> std::vector< std::string >::iterator"""
757  return _tools.vector_sring_begin(self)
758 
759  def end(self):
760  """end(vector_sring self) -> std::vector< std::string >::iterator"""
761  return _tools.vector_sring_end(self)
762 
763  def rbegin(self):
764  """rbegin(vector_sring self) -> std::vector< std::string >::reverse_iterator"""
765  return _tools.vector_sring_rbegin(self)
766 
767  def rend(self):
768  """rend(vector_sring self) -> std::vector< std::string >::reverse_iterator"""
769  return _tools.vector_sring_rend(self)
770 
771  def pop_back(self):
772  """pop_back(vector_sring self)"""
773  return _tools.vector_sring_pop_back(self)
774 
775  def erase(self, *args):
776  """
777  erase(vector_sring self, std::vector< std::string >::iterator pos) -> std::vector< std::string >::iterator
778  erase(vector_sring self, std::vector< std::string >::iterator first, std::vector< std::string >::iterator last) -> std::vector< std::string >::iterator
779  """
780  return _tools.vector_sring_erase(self, *args)
781 
782  def __init__(self, *args):
783  """
784  __init__(std::vector<(std::string)> self) -> vector_sring
785  __init__(std::vector<(std::string)> self, vector_sring arg2) -> vector_sring
786  __init__(std::vector<(std::string)> self, std::vector< std::string >::size_type size) -> vector_sring
787  __init__(std::vector<(std::string)> self, std::vector< std::string >::size_type size, std::vector< std::string >::value_type const & value) -> vector_sring
788  """
789  this = _tools.new_vector_sring(*args)
790  try: self.this.append(this)
791  except: self.this = this
792  def push_back(self, *args):
793  """push_back(vector_sring self, std::vector< std::string >::value_type const & x)"""
794  return _tools.vector_sring_push_back(self, *args)
795 
796  def front(self):
797  """front(vector_sring self) -> std::vector< std::string >::value_type const &"""
798  return _tools.vector_sring_front(self)
799 
800  def back(self):
801  """back(vector_sring self) -> std::vector< std::string >::value_type const &"""
802  return _tools.vector_sring_back(self)
803 
804  def assign(self, *args):
805  """assign(vector_sring self, std::vector< std::string >::size_type n, std::vector< std::string >::value_type const & x)"""
806  return _tools.vector_sring_assign(self, *args)
807 
808  def resize(self, *args):
809  """
810  resize(vector_sring self, std::vector< std::string >::size_type new_size)
811  resize(vector_sring self, std::vector< std::string >::size_type new_size, std::vector< std::string >::value_type const & x)
812  """
813  return _tools.vector_sring_resize(self, *args)
814 
815  def insert(self, *args):
816  """
817  insert(vector_sring self, std::vector< std::string >::iterator pos, std::vector< std::string >::value_type const & x) -> std::vector< std::string >::iterator
818  insert(vector_sring self, std::vector< std::string >::iterator pos, std::vector< std::string >::size_type n,
819  std::vector< std::string >::value_type const & x)
820  """
821  return _tools.vector_sring_insert(self, *args)
822 
823  def reserve(self, *args):
824  """reserve(vector_sring self, std::vector< std::string >::size_type n)"""
825  return _tools.vector_sring_reserve(self, *args)
826 
827  def capacity(self):
828  """capacity(vector_sring self) -> std::vector< std::string >::size_type"""
829  return _tools.vector_sring_capacity(self)
830 
831  __swig_destroy__ = _tools.delete_vector_sring
832  __del__ = lambda self : None;
833 vector_sring_swigregister = _tools.vector_sring_swigregister
834 vector_sring_swigregister(vector_sring)
835 
836 import gammalib.support
837 import gammalib.base
838 import gammalib.app
839 class ctool(gammalib.app.GApplication):
840  """Proxy of C++ ctool class"""
841  __swig_setmethods__ = {}
842  for _s in [gammalib.app.GApplication]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
843  __setattr__ = lambda self, name, value: _swig_setattr(self, ctool, name, value)
844  __swig_getmethods__ = {}
845  for _s in [gammalib.app.GApplication]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
846  __getattr__ = lambda self, name: _swig_getattr(self, ctool, name)
847  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
848  __repr__ = _swig_repr
849  __swig_destroy__ = _tools.delete_ctool
850  __del__ = lambda self : None;
851  def process(self):
852  """process(ctool self)"""
853  return _tools.ctool_process(self)
854 
855  def save(self):
856  """save(ctool self)"""
857  return _tools.ctool_save(self)
858 
859  def run(self):
860  """run(ctool self)"""
861  return _tools.ctool_run(self)
862 
863  def execute(self):
864  """execute(ctool self)"""
865  return _tools.ctool_execute(self)
866 
867  def _setup_observations(self, *args):
868  """
869  _setup_observations(ctool self, GObservations & obs, bool const & response=True, bool const & list=True, bool const & cube=True)
870  _setup_observations(ctool self, GObservations & obs, bool const & response=True, bool const & list=True)
871  _setup_observations(ctool self, GObservations & obs, bool const & response=True)
872  _setup_observations(ctool self, GObservations & obs)
873  """
874  return _tools.ctool__setup_observations(self, *args)
875 
876  def _setup_models(self, *args):
877  """
878  _setup_models(ctool self, GObservations & obs, std::string const & name="")
879  _setup_models(ctool self, GObservations & obs)
880  """
881  return _tools.ctool__setup_models(self, *args)
882 
883  def _create_ebounds(self):
884  """_create_ebounds(ctool self) -> GEbounds"""
885  return _tools.ctool__create_ebounds(self)
886 
887  def _create_energies(self):
888  """_create_energies(ctool self) -> GEnergies"""
889  return _tools.ctool__create_energies(self)
890 
891  def _create_map(self, *args):
892  """_create_map(ctool self, GObservations const & obs) -> GSkyMap"""
893  return _tools.ctool__create_map(self, *args)
894 
895  def _create_cube(self, *args):
896  """_create_cube(ctool self, GObservations const & obs) -> GCTAEventCube"""
897  return _tools.ctool__create_cube(self, *args)
898 
899  def _create_cta_obs(self):
900  """_create_cta_obs(ctool self) -> GCTAObservation"""
901  return _tools.ctool__create_cta_obs(self)
902 
903  def _require_inobs(self, *args):
904  """_require_inobs(ctool self, std::string const & method)"""
905  return _tools.ctool__require_inobs(self, *args)
906 
907  def _require_inobs_nocube(self, *args):
908  """_require_inobs_nocube(ctool self, std::string const & method)"""
909  return _tools.ctool__require_inobs_nocube(self, *args)
910 
911  def _get_roi(self, *args):
912  """
913  _get_roi(ctool self, GCTAPointing const & pnt=GCTAPointing()) -> GCTARoi
914  _get_roi(ctool self) -> GCTARoi
915  """
916  return _tools.ctool__get_roi(self, *args)
917 
918  def _get_ebounds(self):
919  """_get_ebounds(ctool self) -> GEbounds"""
920  return _tools.ctool__get_ebounds(self)
921 
922  def _get_gti(self, *args):
923  """_get_gti(ctool self, GTimeReference const & ref) -> GGti"""
924  return _tools.ctool__get_gti(self, *args)
925 
926  def _get_pointing(self):
927  """_get_pointing(ctool self) -> GCTAPointing"""
928  return _tools.ctool__get_pointing(self)
929 
930  def _get_skydir(self):
931  """_get_skydir(ctool self) -> GSkyDir"""
932  return _tools.ctool__get_skydir(self)
933 
934  def _set_outfile_name(self, *args):
935  """_set_outfile_name(ctool self, std::string const & filename) -> std::string"""
936  return _tools.ctool__set_outfile_name(self, *args)
937 
938  def _is_stacked(self):
939  """_is_stacked(ctool self) -> bool"""
940  return _tools.ctool__is_stacked(self)
941 
942  def _is_onoff(self):
943  """_is_onoff(ctool self) -> bool"""
944  return _tools.ctool__is_onoff(self)
945 
946  def _set_response(self, *args):
947  """_set_response(ctool self, GObservations & obs)"""
948  return _tools.ctool__set_response(self, *args)
949 
950  def _set_edisp(self, *args):
951  """_set_edisp(ctool self, GObservations & obs, bool const & edisp) -> vector_bool"""
952  return _tools.ctool__set_edisp(self, *args)
953 
954  def _restore_edisp(self, *args):
955  """_restore_edisp(ctool self, GObservations & obs, vector_bool edisp)"""
956  return _tools.ctool__restore_edisp(self, *args)
957 
958  def _set_obs_response(self, *args):
959  """_set_obs_response(ctool self, GCTAObservation * obs)"""
960  return _tools.ctool__set_obs_response(self, *args)
961 
962  def _get_observations(self, get_response=True):
963  """
964  _get_observations(ctool self, bool const & get_response=True) -> GObservations
965  _get_observations(ctool self) -> GObservations
966  """
967  return _tools.ctool__get_observations(self, get_response)
968 
969  def _get_mean_pointing(self, *args):
970  """_get_mean_pointing(ctool self, GObservations const & obs) -> GSkyDir"""
971  return _tools.ctool__get_mean_pointing(self, *args)
972 
973  def _get_current_rss(self):
974  """_get_current_rss(ctool self) -> size_t"""
975  return _tools.ctool__get_current_rss(self)
976 
977  def _get_obs_header(self, *args):
978  """_get_obs_header(ctool self, GObservation const * obs) -> std::string"""
979  return _tools.ctool__get_obs_header(self, *args)
980 
981  def _insert_energy_boundaries(self, *args):
982  """_insert_energy_boundaries(ctool self, GEnergies const & energies, GCTAObservation const & obs) -> GEnergies"""
983  return _tools.ctool__insert_energy_boundaries(self, *args)
984 
985  def _cube_layer_usage(self, *args):
986  """_cube_layer_usage(ctool self, GEbounds const & cube_ebounds, GEbounds const & list_ebounds) -> vector_bool"""
987  return _tools.ctool__cube_layer_usage(self, *args)
988 
989  def _get_gtiname(self, *args):
990  """_get_gtiname(ctool self, std::string const & filename, std::string const & evtname) -> std::string"""
991  return _tools.ctool__get_gtiname(self, *args)
992 
993  def _save_event_list(self, *args):
994  """
995  _save_event_list(ctool self, GCTAObservation const * obs, std::string const & infile, std::string const & evtname,
996  std::string const & gtiname, std::string const & outfile)
997  """
998  return _tools.ctool__save_event_list(self, *args)
999 
1000  def _warn_too_few_energies(self, *args):
1001  """_warn_too_few_energies(ctool self, GEnergies const & energies) -> std::string"""
1002  return _tools.ctool__warn_too_few_energies(self, *args)
1003 
1004  def _warn_xml_suffix(self, *args):
1005  """_warn_xml_suffix(ctool self, GFilename const & filename) -> std::string"""
1006  return _tools.ctool__warn_xml_suffix(self, *args)
1007 
1008  def _log_parameters(self, *args):
1009  """_log_parameters(ctool self, int const & chatter)"""
1010  return _tools.ctool__log_parameters(self, *args)
1011 
1012  def _log_observations(self, *args):
1013  """
1014  _log_observations(ctool self, int const & chatter, GObservations const & obs, std::string const & what="Observation")
1015  _log_observations(ctool self, int const & chatter, GObservations const & obs)
1016  """
1017  return _tools.ctool__log_observations(self, *args)
1018 
1019  def _log_models(self, *args):
1020  """
1021  _log_models(ctool self, int const & chatter, GModels const & models, std::string const & what="Model")
1022  _log_models(ctool self, int const & chatter, GModels const & models)
1023  """
1024  return _tools.ctool__log_models(self, *args)
1025 
1026  def _read_ahead(self, *args):
1027  """
1028  _read_ahead(ctool self) -> bool const
1029  _read_ahead(ctool self, bool const & flag)
1030  """
1031  return _tools.ctool__read_ahead(self, *args)
1032 
1033  def __getstate__(self):
1034  state = (gammalib.GApplication.__getstate__(self),)
1035  return state
1036  def __setstate__(self, state):
1037  gammalib.GApplication.__setstate__(self, state[0])
1038 
1039 ctool_swigregister = _tools.ctool_swigregister
1040 ctool_swigregister(ctool)
1041 
1042 class cscript(ctool):
1043  """Proxy of C++ cscript class"""
1044  __swig_setmethods__ = {}
1045  for _s in [ctool]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1046  __setattr__ = lambda self, name, value: _swig_setattr(self, cscript, name, value)
1047  __swig_getmethods__ = {}
1048  for _s in [ctool]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1049  __getattr__ = lambda self, name: _swig_getattr(self, cscript, name)
1050  __repr__ = _swig_repr
1051  def __init__(self, *args):
1052  """
1053  __init__(cscript self, std::string const & name, std::string const & version) -> cscript
1054  __init__(cscript self, std::string const & name, std::string const & version, GApplicationPars const & pars) -> cscript
1055  __init__(cscript self, std::string const & name, std::string const & version, int ARGC) -> cscript
1056  __init__(cscript self, ctool app) -> cscript
1057  """
1058  this = _tools.new_cscript(*args)
1059  try: self.this.append(this)
1060  except: self.this = this
1061  __swig_destroy__ = _tools.delete_cscript
1062  __del__ = lambda self : None;
1063  def process(self):
1064  """process(cscript self)"""
1065  return _tools.cscript_process(self)
1066 
1067  def save(self):
1068  """save(cscript self)"""
1069  return _tools.cscript_save(self)
1070 
1071  def __getstate__(self):
1072  state = (gammalib.GApplication.__getstate__(self),)
1073  return state
1074  def __setstate__(self, state):
1075  gammalib.GApplication.__setstate__(self, state[0])
1076 
1077 cscript_swigregister = _tools.cscript_swigregister
1078 cscript_swigregister(cscript)
1079 
1080 # Initialise observation container from constructor arguments. In case that
1081 # an observation container is provided as argument, this container will be
1082 # used to initialise the class. The function returns a tuple containing the
1083 # observation container and the eventually reduced argument list.
1084 def _set_input_obs(self, argv):
1085  if len(argv) > 0 and isinstance(argv[0],gammalib.GObservations):
1086  obs = argv[0]
1087  argv = argv[1:]
1088  else:
1089  obs = gammalib.GObservations()
1090  return (obs, argv)
1091 cscript._set_input_obs = _set_input_obs
1092 
1093 # Initialise application by calling the appropriate class constructor
1094 def _init_cscript(self, name, version, argv):
1095  if len(argv) > 0:
1096  if len(argv) == 3 and argv[0] == name and argv[1] == version:
1097  cscript.__init__(self, name, version, argv[2])
1098  else:
1099  cscript.__init__(self, name, version, *argv)
1100  else:
1101  cscript.__init__(self, name, version)
1102  # Set logger properties
1103  self._log.date(True)
1104 cscript._init_cscript = _init_cscript
1105 
1106 # This function either returns or assigns user parameters in form of a
1107 # dictionary. The assignment function takes a dictionary as argument and
1108 # the function then loops over all keys in that dictionary and assigns
1109 # the value to the parameter. For example
1110 #
1111 # >>> tool.pardict({'ra': 83.63, 'dec': 22.01})
1112 #
1113 # is equivalent to
1114 #
1115 # >>> tool['ra'] = 83.63
1116 # >>> tool['dec'] = 22.01
1117 #
1118 # and assigns the 'ra' and 'dec' parameters of the tool. The return function
1119 # takes no argument and returns a dictionary with the parameter names as
1120 # keys and the current values as values. No parameter querying is performed.
1121 # For example
1122 #
1123 # >>> d = tool.pardict()
1124 #
1125 # puts all parameters in the dictionary d.
1126 def _pardict(self, *args):
1127  if len(args) == 0:
1128  d = {}
1129  for par in self._pars():
1130  if par.type() == 'b':
1131  v = gammalib.tolower(par.current_value())
1132  value = (v == "yes" or v == "y" or v == "true" or v == "t")
1133  d[par.name()] = value
1134  elif par.type() == 'i':
1135  d[par.name()] = int(par.current_value())
1136  elif par.type() == 'r':
1137  d[par.name()] = float(par.current_value())
1138  else:
1139  d[par.name()] = str(par.current_value())
1140  return d
1141  elif len(args) == 1:
1142  for key in args[0]:
1143  self[key] = args[0][key]
1144  else:
1145  raise TypeError('pardict() takes 0 or 1 arguments (%d given)' % len(args))
1146 ctool.pardict = _pardict
1147 cscript.pardict = _pardict
1148 
1149 
1150 # Run the script
1151 def _run(self):
1152  if self._logDebug():
1153  self._log.cout(True)
1154  self._inc_running()
1155  self.process()
1156  self._dec_running()
1157 cscript.run = _run
1158 
1159 # Execute the script
1160 def _execute(self):
1161  self._inc_running()
1162  self._read_ahead(True)
1163  if self._logDebug():
1164  self._log.cout(True)
1165  self.process()
1166  self.save()
1167  self._dec_running()
1168 cscript.execute = _execute
1169 
1170 class ctobservation(ctool):
1171  """Proxy of C++ ctobservation class"""
1172  __swig_setmethods__ = {}
1173  for _s in [ctool]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1174  __setattr__ = lambda self, name, value: _swig_setattr(self, ctobservation, name, value)
1175  __swig_getmethods__ = {}
1176  for _s in [ctool]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1177  __getattr__ = lambda self, name: _swig_getattr(self, ctobservation, name)
1178  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
1179  __repr__ = _swig_repr
1180  __swig_destroy__ = _tools.delete_ctobservation
1181  __del__ = lambda self : None;
1182  def process(self):
1183  """process(ctobservation self)"""
1184  return _tools.ctobservation_process(self)
1185 
1186  def save(self):
1187  """save(ctobservation self)"""
1188  return _tools.ctobservation_save(self)
1189 
1190  def obs(self, *args):
1191  """
1192  obs(ctobservation self, GObservations const & obs)
1193  obs(ctobservation self) -> GObservations const &
1194  """
1195  return _tools.ctobservation_obs(self, *args)
1196 
1197  def _first_unbinned_observation(self):
1198  """_first_unbinned_observation(ctobservation self) -> GCTAObservation *"""
1199  return _tools.ctobservation__first_unbinned_observation(self)
1200 
1201  def _next_unbinned_observation(self):
1202  """_next_unbinned_observation(ctobservation self) -> GCTAObservation *"""
1203  return _tools.ctobservation__next_unbinned_observation(self)
1204 
1205  def _read_ogip_keywords(self, *args):
1206  """_read_ogip_keywords(ctobservation self, GFitsHDU * hdu)"""
1207  return _tools.ctobservation__read_ogip_keywords(self, *args)
1208 
1209  def _write_ogip_keywords(self, *args):
1210  """_write_ogip_keywords(ctobservation self, GFitsHDU * hdu)"""
1211  return _tools.ctobservation__write_ogip_keywords(self, *args)
1212 
1213  def _set_obs_statistic(self, *args):
1214  """_set_obs_statistic(ctobservation self, std::string const & statistic)"""
1215  return _tools.ctobservation__set_obs_statistic(self, *args)
1216 
1217  def _set_obs_bounds(self):
1218  """_set_obs_bounds(ctobservation self)"""
1219  return _tools.ctobservation__set_obs_bounds(self)
1220 
1221  def _save_events_fits(self):
1222  """_save_events_fits(ctobservation self)"""
1223  return _tools.ctobservation__save_events_fits(self)
1224 
1225  def _save_events_xml(self):
1226  """_save_events_xml(ctobservation self)"""
1227  return _tools.ctobservation__save_events_xml(self)
1228 
1229 ctobservation_swigregister = _tools.ctobservation_swigregister
1230 ctobservation_swigregister(ctobservation)
1231 
1232 class csobservation(ctobservation):
1233  """Proxy of C++ csobservation class"""
1234  __swig_setmethods__ = {}
1235  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1236  __setattr__ = lambda self, name, value: _swig_setattr(self, csobservation, name, value)
1237  __swig_getmethods__ = {}
1238  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1239  __getattr__ = lambda self, name: _swig_getattr(self, csobservation, name)
1240  __repr__ = _swig_repr
1241  def __init__(self, *args):
1242  """
1243  __init__(csobservation self, std::string const & name, std::string const & version) -> csobservation
1244  __init__(csobservation self, std::string const & name, std::string const & version, GApplicationPars const & pars) -> csobservation
1245  __init__(csobservation self, std::string const & name, std::string const & version, int ARGC) -> csobservation
1246  __init__(csobservation self, std::string const & name, std::string const & version, GObservations const & obs) -> csobservation
1247  __init__(csobservation self, csobservation app) -> csobservation
1248  """
1249  this = _tools.new_csobservation(*args)
1250  try: self.this.append(this)
1251  except: self.this = this
1252  __swig_destroy__ = _tools.delete_csobservation
1253  __del__ = lambda self : None;
1254  def process(self):
1255  """process(csobservation self)"""
1256  return _tools.csobservation_process(self)
1257 
1258  def save(self):
1259  """save(csobservation self)"""
1260  return _tools.csobservation_save(self)
1261 
1262  def __getstate__(self):
1263  state = (ctool.__getstate__(self), self.obs())
1264  return state
1265  def __setstate__(self, state):
1266  ctool.__setstate__(self, state[0])
1267  self.obs(state[1])
1268 
1269 csobservation_swigregister = _tools.csobservation_swigregister
1270 csobservation_swigregister(csobservation)
1271 
1272 # Initialise application by calling the appropriate base class constructor.
1273 # The function supports either an observation container, or an argument
1274 # list or no argument as "argv" parameter. The function also writes the
1275 # header in the log file and switches the date on for logging.
1276 def _init_csobservation(self, name, version, argv):
1277  if len(argv) > 0 and isinstance(argv[0],gammalib.GObservations):
1278  csobservation.__init__(self, name, version, argv[0])
1279  elif len(argv) > 0:
1280  if len(argv) == 3 and argv[0] == name and argv[1] == version:
1281  csobservation.__init__(self, name, version, argv[2])
1282  else:
1283  csobservation.__init__(self, name, version, *argv)
1284  else:
1285  csobservation.__init__(self, name, version)
1286  # Set logger properties
1287  self._log.date(True)
1288 csobservation._init_csobservation = _init_csobservation
1289 
1290 # Define an iterator over all unbinned observations
1291 def _unbinned_observations(self):
1292  obs = self._first_unbinned_observation()
1293  while obs != None:
1294  yield obs
1295  obs = self._next_unbinned_observation()
1296 ctool._unbinned_observations = _unbinned_observations
1297 cscript._unbinned_observations = _unbinned_observations
1298 
1299 # Run the script
1300 def _run(self):
1301  if self._logDebug():
1302  self._log.cout(True)
1303  self._inc_running()
1304  self.process()
1305  self._dec_running()
1306 csobservation.run = _run
1307 
1308 # Execute the script
1309 def _execute(self):
1310  self._inc_running()
1311  self._read_ahead(True)
1312  if self._logDebug():
1313  self._log.cout(True)
1314  self.process()
1315  self.save()
1316  self._dec_running()
1317 csobservation.execute = _execute
1318 
1319 import gammalib.opt
1321  """Proxy of C++ ctlikelihood class"""
1322  __swig_setmethods__ = {}
1323  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1324  __setattr__ = lambda self, name, value: _swig_setattr(self, ctlikelihood, name, value)
1325  __swig_getmethods__ = {}
1326  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1327  __getattr__ = lambda self, name: _swig_getattr(self, ctlikelihood, name)
1328  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
1329  __repr__ = _swig_repr
1330  __swig_destroy__ = _tools.delete_ctlikelihood
1331  __del__ = lambda self : None;
1332  def process(self):
1333  """process(ctlikelihood self)"""
1334  return _tools.ctlikelihood_process(self)
1335 
1336  def save(self):
1337  """save(ctlikelihood self)"""
1338  return _tools.ctlikelihood_save(self)
1339 
1340  def opt(self, *args):
1341  """
1342  opt(ctlikelihood self, GOptimizer opt)
1343  opt(ctlikelihood self) -> GOptimizer
1344  """
1345  return _tools.ctlikelihood_opt(self, *args)
1346 
1347  def _evaluate(self, *args):
1348  """_evaluate(ctlikelihood self, GModelPar & par, double const & value) -> double"""
1349  return _tools.ctlikelihood__evaluate(self, *args)
1350 
1351 ctlikelihood_swigregister = _tools.ctlikelihood_swigregister
1352 ctlikelihood_swigregister(ctlikelihood)
1353 
1354 class cslikelihood(ctlikelihood):
1355  """Proxy of C++ cslikelihood class"""
1356  __swig_setmethods__ = {}
1357  for _s in [ctlikelihood]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1358  __setattr__ = lambda self, name, value: _swig_setattr(self, cslikelihood, name, value)
1359  __swig_getmethods__ = {}
1360  for _s in [ctlikelihood]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1361  __getattr__ = lambda self, name: _swig_getattr(self, cslikelihood, name)
1362  __repr__ = _swig_repr
1363  def __init__(self, *args):
1364  """
1365  __init__(cslikelihood self, std::string const & name, std::string const & version) -> cslikelihood
1366  __init__(cslikelihood self, std::string const & name, std::string const & version, GApplicationPars const & pars) -> cslikelihood
1367  __init__(cslikelihood self, std::string const & name, std::string const & version, int ARGC) -> cslikelihood
1368  __init__(cslikelihood self, std::string const & name, std::string const & version, GObservations const & obs) -> cslikelihood
1369  __init__(cslikelihood self, cslikelihood app) -> cslikelihood
1370  """
1371  this = _tools.new_cslikelihood(*args)
1372  try: self.this.append(this)
1373  except: self.this = this
1374  __swig_destroy__ = _tools.delete_cslikelihood
1375  __del__ = lambda self : None;
1376  def process(self):
1377  """process(cslikelihood self)"""
1378  return _tools.cslikelihood_process(self)
1379 
1380  def save(self):
1381  """save(cslikelihood self)"""
1382  return _tools.cslikelihood_save(self)
1383 
1384  def __getstate__(self):
1385  state = (ctool.__getstate__(self), self.obs())
1386  return state
1387  def __setstate__(self, state):
1388  ctool.__setstate__(self, state[0])
1389  self.obs(state[1])
1390 
1391 cslikelihood_swigregister = _tools.cslikelihood_swigregister
1392 cslikelihood_swigregister(cslikelihood)
1393 
1394 # Initialise application by calling the appropriate base class constructor.
1395 # The function supports either an observation container, or an argument
1396 # list or no argument as "argv" parameter. The function also writes the
1397 # header in the log file and switches the date on for logging.
1398 def _init_cslikelihood(self, name, version, argv):
1399  if len(argv) > 0 and isinstance(argv[0],gammalib.GObservations):
1400  cslikelihood.__init__(self, name, version, argv[0])
1401  elif len(argv) > 0:
1402  if len(argv) == 3 and argv[0] == name and argv[1] == version:
1403  cslikelihood.__init__(self, name, version, argv[2])
1404  else:
1405  cslikelihood.__init__(self, name, version, *argv)
1406  else:
1407  cslikelihood.__init__(self, name, version)
1408  # Set logger properties
1409  self._log.date(True)
1410 cslikelihood._init_cslikelihood = _init_cslikelihood
1411 
1412 # Run the script
1413 def _run(self):
1414  if self._logDebug():
1415  self._log.cout(True)
1416  self._inc_running()
1417  self.process()
1418  self._dec_running()
1419 cslikelihood.run = _run
1420 
1421 # Execute the script
1422 def _execute(self):
1423  self._inc_running()
1424  self._read_ahead(True)
1425  if self._logDebug():
1426  self._log.cout(True)
1427  self.process()
1428  self.save()
1429  self._dec_running()
1430 cslikelihood.execute = _execute
1431 
1432 class ctfindvar(ctobservation):
1433  """Proxy of C++ ctfindvar class"""
1434  __swig_setmethods__ = {}
1435  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1436  __setattr__ = lambda self, name, value: _swig_setattr(self, ctfindvar, name, value)
1437  __swig_getmethods__ = {}
1438  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1439  __getattr__ = lambda self, name: _swig_getattr(self, ctfindvar, name)
1440  __repr__ = _swig_repr
1441  def __init__(self, *args):
1442  """
1443  __init__(ctfindvar self) -> ctfindvar
1444  __init__(ctfindvar self, GObservations const & obs) -> ctfindvar
1445  __init__(ctfindvar self, int argc, char *[] argv) -> ctfindvar
1446  __init__(ctfindvar self, ctfindvar app) -> ctfindvar
1447  """
1448  this = _tools.new_ctfindvar(*args)
1449  try: self.this.append(this)
1450  except: self.this = this
1451  __swig_destroy__ = _tools.delete_ctfindvar
1452  __del__ = lambda self : None;
1453  def process(self):
1454  """process(ctfindvar self)"""
1455  return _tools.ctfindvar_process(self)
1456 
1457  def save(self):
1458  """save(ctfindvar self)"""
1459  return _tools.ctfindvar_save(self)
1460 
1461  def copy(self):
1462  """copy(ctfindvar self) -> ctfindvar"""
1463  return _tools.ctfindvar_copy(self)
1464 
1465 ctfindvar_swigregister = _tools.ctfindvar_swigregister
1466 ctfindvar_swigregister(ctfindvar)
1467 
1468 class ctbin(ctobservation):
1469  """Proxy of C++ ctbin class"""
1470  __swig_setmethods__ = {}
1471  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1472  __setattr__ = lambda self, name, value: _swig_setattr(self, ctbin, name, value)
1473  __swig_getmethods__ = {}
1474  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1475  __getattr__ = lambda self, name: _swig_getattr(self, ctbin, name)
1476  __repr__ = _swig_repr
1477  def __init__(self, *args):
1478  """
1479  __init__(ctbin self) -> ctbin
1480  __init__(ctbin self, GObservations const & obs) -> ctbin
1481  __init__(ctbin self, int argc, char *[] argv) -> ctbin
1482  __init__(ctbin self, ctbin app) -> ctbin
1483  """
1484  this = _tools.new_ctbin(*args)
1485  try: self.this.append(this)
1486  except: self.this = this
1487  __swig_destroy__ = _tools.delete_ctbin
1488  __del__ = lambda self : None;
1489  def process(self):
1490  """process(ctbin self)"""
1491  return _tools.ctbin_process(self)
1492 
1493  def cubes(self):
1494  """cubes(ctbin self) -> int"""
1495  return _tools.ctbin_cubes(self)
1496 
1497  def cube(self, index=0):
1498  """
1499  cube(ctbin self, int const & index=0) -> GCTAEventCube const
1500  cube(ctbin self) -> GCTAEventCube const &
1501  """
1502  return _tools.ctbin_cube(self, index)
1503 
1504  def save(self):
1505  """save(ctbin self)"""
1506  return _tools.ctbin_save(self)
1507 
1508  def publish(self, name=""):
1509  """
1510  publish(ctbin self, std::string const & name="")
1511  publish(ctbin self)
1512  """
1513  return _tools.ctbin_publish(self, name)
1514 
1515  def copy(self):
1516  """copy(ctbin self) -> ctbin"""
1517  return _tools.ctbin_copy(self)
1518 
1519 ctbin_swigregister = _tools.ctbin_swigregister
1520 ctbin_swigregister(ctbin)
1521 
1522 class ctobssim(ctobservation):
1523  """Proxy of C++ ctobssim class"""
1524  __swig_setmethods__ = {}
1525  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1526  __setattr__ = lambda self, name, value: _swig_setattr(self, ctobssim, name, value)
1527  __swig_getmethods__ = {}
1528  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1529  __getattr__ = lambda self, name: _swig_getattr(self, ctobssim, name)
1530  __repr__ = _swig_repr
1531  def __init__(self, *args):
1532  """
1533  __init__(ctobssim self) -> ctobssim
1534  __init__(ctobssim self, GObservations const & obs) -> ctobssim
1535  __init__(ctobssim self, int argc, char *[] argv) -> ctobssim
1536  __init__(ctobssim self, ctobssim app) -> ctobssim
1537  """
1538  this = _tools.new_ctobssim(*args)
1539  try: self.this.append(this)
1540  except: self.this = this
1541  __swig_destroy__ = _tools.delete_ctobssim
1542  __del__ = lambda self : None;
1543  def process(self):
1544  """process(ctobssim self)"""
1545  return _tools.ctobssim_process(self)
1546 
1547  def save(self):
1548  """save(ctobssim self)"""
1549  return _tools.ctobssim_save(self)
1550 
1551  def publish(self, name=""):
1552  """
1553  publish(ctobssim self, std::string const & name="")
1554  publish(ctobssim self)
1555  """
1556  return _tools.ctobssim_publish(self, name)
1557 
1558  def max_rate(self, *args):
1559  """
1560  max_rate(ctobssim self) -> double const
1561  max_rate(ctobssim self, double const & max_rate)
1562  """
1563  return _tools.ctobssim_max_rate(self, *args)
1564 
1565  def models(self, *args):
1566  """models(ctobssim self, GModels const & models)"""
1567  return _tools.ctobssim_models(self, *args)
1568 
1569  def copy(self):
1570  """copy(ctobssim self) -> ctobssim"""
1571  return _tools.ctobssim_copy(self)
1572 
1573 ctobssim_swigregister = _tools.ctobssim_swigregister
1574 ctobssim_swigregister(ctobssim)
1575 
1576 class ctlike(ctlikelihood):
1577  """Proxy of C++ ctlike class"""
1578  __swig_setmethods__ = {}
1579  for _s in [ctlikelihood]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1580  __setattr__ = lambda self, name, value: _swig_setattr(self, ctlike, name, value)
1581  __swig_getmethods__ = {}
1582  for _s in [ctlikelihood]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1583  __getattr__ = lambda self, name: _swig_getattr(self, ctlike, name)
1584  __repr__ = _swig_repr
1585  def __init__(self, *args):
1586  """
1587  __init__(ctlike self) -> ctlike
1588  __init__(ctlike self, GObservations const & obs) -> ctlike
1589  __init__(ctlike self, int argc, char *[] argv) -> ctlike
1590  __init__(ctlike self, ctlike app) -> ctlike
1591  """
1592  this = _tools.new_ctlike(*args)
1593  try: self.this.append(this)
1594  except: self.this = this
1595  __swig_destroy__ = _tools.delete_ctlike
1596  __del__ = lambda self : None;
1597  def process(self):
1598  """process(ctlike self)"""
1599  return _tools.ctlike_process(self)
1600 
1601  def save(self):
1602  """save(ctlike self)"""
1603  return _tools.ctlike_save(self)
1604 
1605  def iter(self):
1606  """iter(ctlike self) -> int const &"""
1607  return _tools.ctlike_iter(self)
1608 
1609  def logL(self):
1610  """logL(ctlike self) -> double const &"""
1611  return _tools.ctlike_logL(self)
1612 
1613  def nobs(self):
1614  """nobs(ctlike self) -> double const &"""
1615  return _tools.ctlike_nobs(self)
1616 
1617  def npred(self):
1618  """npred(ctlike self) -> double const &"""
1619  return _tools.ctlike_npred(self)
1620 
1621  def copy(self):
1622  """copy(ctlike self) -> ctlike"""
1623  return _tools.ctlike_copy(self)
1624 
1625 ctlike_swigregister = _tools.ctlike_swigregister
1626 ctlike_swigregister(ctlike)
1627 
1628 class ctmodel(ctobservation):
1629  """Proxy of C++ ctmodel class"""
1630  __swig_setmethods__ = {}
1631  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1632  __setattr__ = lambda self, name, value: _swig_setattr(self, ctmodel, name, value)
1633  __swig_getmethods__ = {}
1634  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1635  __getattr__ = lambda self, name: _swig_getattr(self, ctmodel, name)
1636  __repr__ = _swig_repr
1637  def __init__(self, *args):
1638  """
1639  __init__(ctmodel self) -> ctmodel
1640  __init__(ctmodel self, GObservations const & obs) -> ctmodel
1641  __init__(ctmodel self, int argc, char *[] argv) -> ctmodel
1642  __init__(ctmodel self, ctmodel app) -> ctmodel
1643  """
1644  this = _tools.new_ctmodel(*args)
1645  try: self.this.append(this)
1646  except: self.this = this
1647  __swig_destroy__ = _tools.delete_ctmodel
1648  __del__ = lambda self : None;
1649  def process(self):
1650  """process(ctmodel self)"""
1651  return _tools.ctmodel_process(self)
1652 
1653  def save(self):
1654  """save(ctmodel self)"""
1655  return _tools.ctmodel_save(self)
1656 
1657  def publish(self, name=""):
1658  """
1659  publish(ctmodel self, std::string const & name="")
1660  publish(ctmodel self)
1661  """
1662  return _tools.ctmodel_publish(self, name)
1663 
1664  def cube(self, *args):
1665  """
1666  cube(ctmodel self) -> GCTAEventCube const
1667  cube(ctmodel self, GCTAEventCube const & cube)
1668  """
1669  return _tools.ctmodel_cube(self, *args)
1670 
1671  def models(self, *args):
1672  """models(ctmodel self, GModels const & models)"""
1673  return _tools.ctmodel_models(self, *args)
1674 
1675  def copy(self):
1676  """copy(ctmodel self) -> ctmodel"""
1677  return _tools.ctmodel_copy(self)
1678 
1679 ctmodel_swigregister = _tools.ctmodel_swigregister
1680 ctmodel_swigregister(ctmodel)
1681 
1682 class ctselect(ctobservation):
1683  """Proxy of C++ ctselect class"""
1684  __swig_setmethods__ = {}
1685  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1686  __setattr__ = lambda self, name, value: _swig_setattr(self, ctselect, name, value)
1687  __swig_getmethods__ = {}
1688  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1689  __getattr__ = lambda self, name: _swig_getattr(self, ctselect, name)
1690  __repr__ = _swig_repr
1691  def __init__(self, *args):
1692  """
1693  __init__(ctselect self) -> ctselect
1694  __init__(ctselect self, GObservations const & obs) -> ctselect
1695  __init__(ctselect self, int argc, char *[] argv) -> ctselect
1696  __init__(ctselect self, ctselect app) -> ctselect
1697  """
1698  this = _tools.new_ctselect(*args)
1699  try: self.this.append(this)
1700  except: self.this = this
1701  __swig_destroy__ = _tools.delete_ctselect
1702  __del__ = lambda self : None;
1703  def process(self):
1704  """process(ctselect self)"""
1705  return _tools.ctselect_process(self)
1706 
1707  def save(self):
1708  """save(ctselect self)"""
1709  return _tools.ctselect_save(self)
1710 
1711  def publish(self, name=""):
1712  """
1713  publish(ctselect self, std::string const & name="")
1714  publish(ctselect self)
1715  """
1716  return _tools.ctselect_publish(self, name)
1717 
1718  def copy(self):
1719  """copy(ctselect self) -> ctselect"""
1720  return _tools.ctselect_copy(self)
1721 
1722 ctselect_swigregister = _tools.ctselect_swigregister
1723 ctselect_swigregister(ctselect)
1724 
1725 class ctphase(ctobservation):
1726  """Proxy of C++ ctphase class"""
1727  __swig_setmethods__ = {}
1728  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1729  __setattr__ = lambda self, name, value: _swig_setattr(self, ctphase, name, value)
1730  __swig_getmethods__ = {}
1731  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1732  __getattr__ = lambda self, name: _swig_getattr(self, ctphase, name)
1733  __repr__ = _swig_repr
1734  def __init__(self, *args):
1735  """
1736  __init__(ctphase self) -> ctphase
1737  __init__(ctphase self, GObservations const & obs) -> ctphase
1738  __init__(ctphase self, int argc, char *[] argv) -> ctphase
1739  __init__(ctphase self, ctphase app) -> ctphase
1740  """
1741  this = _tools.new_ctphase(*args)
1742  try: self.this.append(this)
1743  except: self.this = this
1744  __swig_destroy__ = _tools.delete_ctphase
1745  __del__ = lambda self : None;
1746  def process(self):
1747  """process(ctphase self)"""
1748  return _tools.ctphase_process(self)
1749 
1750  def save(self):
1751  """save(ctphase self)"""
1752  return _tools.ctphase_save(self)
1753 
1754  def publish(self, name=""):
1755  """
1756  publish(ctphase self, std::string const & name="")
1757  publish(ctphase self)
1758  """
1759  return _tools.ctphase_publish(self, name)
1760 
1761  def copy(self):
1762  """copy(ctphase self) -> ctphase"""
1763  return _tools.ctphase_copy(self)
1764 
1765 ctphase_swigregister = _tools.ctphase_swigregister
1766 ctphase_swigregister(ctphase)
1767 
1768 class ctskymap(ctobservation):
1769  """Proxy of C++ ctskymap class"""
1770  __swig_setmethods__ = {}
1771  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1772  __setattr__ = lambda self, name, value: _swig_setattr(self, ctskymap, name, value)
1773  __swig_getmethods__ = {}
1774  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1775  __getattr__ = lambda self, name: _swig_getattr(self, ctskymap, name)
1776  __repr__ = _swig_repr
1777  def __init__(self, *args):
1778  """
1779  __init__(ctskymap self) -> ctskymap
1780  __init__(ctskymap self, GObservations const & obs) -> ctskymap
1781  __init__(ctskymap self, int argc, char *[] argv) -> ctskymap
1782  __init__(ctskymap self, ctskymap app) -> ctskymap
1783  """
1784  this = _tools.new_ctskymap(*args)
1785  try: self.this.append(this)
1786  except: self.this = this
1787  __swig_destroy__ = _tools.delete_ctskymap
1788  __del__ = lambda self : None;
1789  def process(self):
1790  """process(ctskymap self)"""
1791  return _tools.ctskymap_process(self)
1792 
1793  def save(self):
1794  """save(ctskymap self)"""
1795  return _tools.ctskymap_save(self)
1796 
1797  def publish(self, name=""):
1798  """
1799  publish(ctskymap self, std::string const & name="")
1800  publish(ctskymap self)
1801  """
1802  return _tools.ctskymap_publish(self, name)
1803 
1804  def skymap(self):
1805  """skymap(ctskymap self) -> GSkyMap const &"""
1806  return _tools.ctskymap_skymap(self)
1807 
1808  def fits(self):
1809  """fits(ctskymap self) -> GFits const &"""
1810  return _tools.ctskymap_fits(self)
1811 
1812  def exclusion_map(self, *args):
1813  """
1814  exclusion_map(ctskymap self, GSkyRegionMap const & exclusion_map)
1815  exclusion_map(ctskymap self) -> GSkyRegionMap
1816  """
1817  return _tools.ctskymap_exclusion_map(self, *args)
1818 
1819  def copy(self):
1820  """copy(ctskymap self) -> ctskymap"""
1821  return _tools.ctskymap_copy(self)
1822 
1823 ctskymap_swigregister = _tools.ctskymap_swigregister
1824 ctskymap_swigregister(ctskymap)
1825 
1826 class ctexpcube(ctobservation):
1827  """Proxy of C++ ctexpcube class"""
1828  __swig_setmethods__ = {}
1829  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1830  __setattr__ = lambda self, name, value: _swig_setattr(self, ctexpcube, name, value)
1831  __swig_getmethods__ = {}
1832  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1833  __getattr__ = lambda self, name: _swig_getattr(self, ctexpcube, name)
1834  __repr__ = _swig_repr
1835  def __init__(self, *args):
1836  """
1837  __init__(ctexpcube self) -> ctexpcube
1838  __init__(ctexpcube self, GObservations const & obs) -> ctexpcube
1839  __init__(ctexpcube self, int argc, char *[] argv) -> ctexpcube
1840  __init__(ctexpcube self, ctexpcube app) -> ctexpcube
1841  """
1842  this = _tools.new_ctexpcube(*args)
1843  try: self.this.append(this)
1844  except: self.this = this
1845  __swig_destroy__ = _tools.delete_ctexpcube
1846  __del__ = lambda self : None;
1847  def process(self):
1848  """process(ctexpcube self)"""
1849  return _tools.ctexpcube_process(self)
1850 
1851  def save(self):
1852  """save(ctexpcube self)"""
1853  return _tools.ctexpcube_save(self)
1854 
1855  def publish(self, name=""):
1856  """
1857  publish(ctexpcube self, std::string const & name="")
1858  publish(ctexpcube self)
1859  """
1860  return _tools.ctexpcube_publish(self, name)
1861 
1862  def expcube(self):
1863  """expcube(ctexpcube self) -> GCTACubeExposure const &"""
1864  return _tools.ctexpcube_expcube(self)
1865 
1866  def copy(self):
1867  """copy(ctexpcube self) -> ctexpcube"""
1868  return _tools.ctexpcube_copy(self)
1869 
1870 ctexpcube_swigregister = _tools.ctexpcube_swigregister
1871 ctexpcube_swigregister(ctexpcube)
1872 
1873 class ctpsfcube(ctobservation):
1874  """Proxy of C++ ctpsfcube class"""
1875  __swig_setmethods__ = {}
1876  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1877  __setattr__ = lambda self, name, value: _swig_setattr(self, ctpsfcube, name, value)
1878  __swig_getmethods__ = {}
1879  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1880  __getattr__ = lambda self, name: _swig_getattr(self, ctpsfcube, name)
1881  __repr__ = _swig_repr
1882  def __init__(self, *args):
1883  """
1884  __init__(ctpsfcube self) -> ctpsfcube
1885  __init__(ctpsfcube self, GObservations const & obs) -> ctpsfcube
1886  __init__(ctpsfcube self, int argc, char *[] argv) -> ctpsfcube
1887  __init__(ctpsfcube self, ctpsfcube app) -> ctpsfcube
1888  """
1889  this = _tools.new_ctpsfcube(*args)
1890  try: self.this.append(this)
1891  except: self.this = this
1892  __swig_destroy__ = _tools.delete_ctpsfcube
1893  __del__ = lambda self : None;
1894  def process(self):
1895  """process(ctpsfcube self)"""
1896  return _tools.ctpsfcube_process(self)
1897 
1898  def save(self):
1899  """save(ctpsfcube self)"""
1900  return _tools.ctpsfcube_save(self)
1901 
1902  def psfcube(self):
1903  """psfcube(ctpsfcube self) -> GCTACubePsf const &"""
1904  return _tools.ctpsfcube_psfcube(self)
1905 
1906  def copy(self):
1907  """copy(ctpsfcube self) -> ctpsfcube"""
1908  return _tools.ctpsfcube_copy(self)
1909 
1910 ctpsfcube_swigregister = _tools.ctpsfcube_swigregister
1911 ctpsfcube_swigregister(ctpsfcube)
1912 
1913 class ctedispcube(ctobservation):
1914  """Proxy of C++ ctedispcube class"""
1915  __swig_setmethods__ = {}
1916  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1917  __setattr__ = lambda self, name, value: _swig_setattr(self, ctedispcube, name, value)
1918  __swig_getmethods__ = {}
1919  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1920  __getattr__ = lambda self, name: _swig_getattr(self, ctedispcube, name)
1921  __repr__ = _swig_repr
1922  def __init__(self, *args):
1923  """
1924  __init__(ctedispcube self) -> ctedispcube
1925  __init__(ctedispcube self, GObservations const & obs) -> ctedispcube
1926  __init__(ctedispcube self, int argc, char *[] argv) -> ctedispcube
1927  __init__(ctedispcube self, ctedispcube app) -> ctedispcube
1928  """
1929  this = _tools.new_ctedispcube(*args)
1930  try: self.this.append(this)
1931  except: self.this = this
1932  __swig_destroy__ = _tools.delete_ctedispcube
1933  __del__ = lambda self : None;
1934  def process(self):
1935  """process(ctedispcube self)"""
1936  return _tools.ctedispcube_process(self)
1937 
1938  def save(self):
1939  """save(ctedispcube self)"""
1940  return _tools.ctedispcube_save(self)
1941 
1942  def edispcube(self):
1943  """edispcube(ctedispcube self) -> GCTACubeEdisp const &"""
1944  return _tools.ctedispcube_edispcube(self)
1945 
1946  def copy(self):
1947  """copy(ctedispcube self) -> ctedispcube"""
1948  return _tools.ctedispcube_copy(self)
1949 
1950 ctedispcube_swigregister = _tools.ctedispcube_swigregister
1951 ctedispcube_swigregister(ctedispcube)
1952 
1953 class ctbkgcube(ctobservation):
1954  """Proxy of C++ ctbkgcube class"""
1955  __swig_setmethods__ = {}
1956  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1957  __setattr__ = lambda self, name, value: _swig_setattr(self, ctbkgcube, name, value)
1958  __swig_getmethods__ = {}
1959  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1960  __getattr__ = lambda self, name: _swig_getattr(self, ctbkgcube, name)
1961  __repr__ = _swig_repr
1962  def __init__(self, *args):
1963  """
1964  __init__(ctbkgcube self) -> ctbkgcube
1965  __init__(ctbkgcube self, GObservations const & obs) -> ctbkgcube
1966  __init__(ctbkgcube self, int argc, char *[] argv) -> ctbkgcube
1967  __init__(ctbkgcube self, ctbkgcube app) -> ctbkgcube
1968  """
1969  this = _tools.new_ctbkgcube(*args)
1970  try: self.this.append(this)
1971  except: self.this = this
1972  __swig_destroy__ = _tools.delete_ctbkgcube
1973  __del__ = lambda self : None;
1974  def process(self):
1975  """process(ctbkgcube self)"""
1976  return _tools.ctbkgcube_process(self)
1977 
1978  def save(self):
1979  """save(ctbkgcube self)"""
1980  return _tools.ctbkgcube_save(self)
1981 
1982  def publish(self, name=""):
1983  """
1984  publish(ctbkgcube self, std::string const & name="")
1985  publish(ctbkgcube self)
1986  """
1987  return _tools.ctbkgcube_publish(self, name)
1988 
1989  def cntcube(self, *args):
1990  """cntcube(ctbkgcube self, GCTAEventCube const & cntcube)"""
1991  return _tools.ctbkgcube_cntcube(self, *args)
1992 
1993  def bkgcube(self):
1994  """bkgcube(ctbkgcube self) -> GCTACubeBackground const &"""
1995  return _tools.ctbkgcube_bkgcube(self)
1996 
1997  def models(self):
1998  """models(ctbkgcube self) -> GModels const &"""
1999  return _tools.ctbkgcube_models(self)
2000 
2001  def copy(self):
2002  """copy(ctbkgcube self) -> ctbkgcube"""
2003  return _tools.ctbkgcube_copy(self)
2004 
2005 ctbkgcube_swigregister = _tools.ctbkgcube_swigregister
2006 ctbkgcube_swigregister(ctbkgcube)
2007 
2008 class ctmapcube(ctool):
2009  """Proxy of C++ ctmapcube class"""
2010  __swig_setmethods__ = {}
2011  for _s in [ctool]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2012  __setattr__ = lambda self, name, value: _swig_setattr(self, ctmapcube, name, value)
2013  __swig_getmethods__ = {}
2014  for _s in [ctool]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2015  __getattr__ = lambda self, name: _swig_getattr(self, ctmapcube, name)
2016  __repr__ = _swig_repr
2017  def __init__(self, *args):
2018  """
2019  __init__(ctmapcube self) -> ctmapcube
2020  __init__(ctmapcube self, int argc, char *[] argv) -> ctmapcube
2021  __init__(ctmapcube self, ctmapcube app) -> ctmapcube
2022  """
2023  this = _tools.new_ctmapcube(*args)
2024  try: self.this.append(this)
2025  except: self.this = this
2026  __swig_destroy__ = _tools.delete_ctmapcube
2027  __del__ = lambda self : None;
2028  def process(self):
2029  """process(ctmapcube self)"""
2030  return _tools.ctmapcube_process(self)
2031 
2032  def save(self):
2033  """save(ctmapcube self)"""
2034  return _tools.ctmapcube_save(self)
2035 
2036  def publish(self, name=""):
2037  """
2038  publish(ctmapcube self, std::string const & name="")
2039  publish(ctmapcube self)
2040  """
2041  return _tools.ctmapcube_publish(self, name)
2042 
2043  def mapcube(self):
2044  """mapcube(ctmapcube self) -> GModelSpatialDiffuseCube const &"""
2045  return _tools.ctmapcube_mapcube(self)
2046 
2047  def models(self, *args):
2048  """models(ctmapcube self, GModels const & models)"""
2049  return _tools.ctmapcube_models(self, *args)
2050 
2051  def copy(self):
2052  """copy(ctmapcube self) -> ctmapcube"""
2053  return _tools.ctmapcube_copy(self)
2054 
2055 ctmapcube_swigregister = _tools.ctmapcube_swigregister
2056 ctmapcube_swigregister(ctmapcube)
2057 
2058 class ctcubemask(ctobservation):
2059  """Proxy of C++ ctcubemask class"""
2060  __swig_setmethods__ = {}
2061  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2062  __setattr__ = lambda self, name, value: _swig_setattr(self, ctcubemask, name, value)
2063  __swig_getmethods__ = {}
2064  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2065  __getattr__ = lambda self, name: _swig_getattr(self, ctcubemask, name)
2066  __repr__ = _swig_repr
2067  def __init__(self, *args):
2068  """
2069  __init__(ctcubemask self) -> ctcubemask
2070  __init__(ctcubemask self, GObservations const & obs) -> ctcubemask
2071  __init__(ctcubemask self, int argc, char *[] argv) -> ctcubemask
2072  __init__(ctcubemask self, ctcubemask app) -> ctcubemask
2073  """
2074  this = _tools.new_ctcubemask(*args)
2075  try: self.this.append(this)
2076  except: self.this = this
2077  __swig_destroy__ = _tools.delete_ctcubemask
2078  __del__ = lambda self : None;
2079  def process(self):
2080  """process(ctcubemask self)"""
2081  return _tools.ctcubemask_process(self)
2082 
2083  def save(self):
2084  """save(ctcubemask self)"""
2085  return _tools.ctcubemask_save(self)
2086 
2087  def publish(self, name=""):
2088  """
2089  publish(ctcubemask self, std::string const & name="")
2090  publish(ctcubemask self)
2091  """
2092  return _tools.ctcubemask_publish(self, name)
2093 
2094  def copy(self):
2095  """copy(ctcubemask self) -> ctcubemask"""
2096  return _tools.ctcubemask_copy(self)
2097 
2098 ctcubemask_swigregister = _tools.ctcubemask_swigregister
2099 ctcubemask_swigregister(ctcubemask)
2100 
2101 class cttsmap(ctlikelihood):
2102  """Proxy of C++ cttsmap class"""
2103  __swig_setmethods__ = {}
2104  for _s in [ctlikelihood]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2105  __setattr__ = lambda self, name, value: _swig_setattr(self, cttsmap, name, value)
2106  __swig_getmethods__ = {}
2107  for _s in [ctlikelihood]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2108  __getattr__ = lambda self, name: _swig_getattr(self, cttsmap, name)
2109  __repr__ = _swig_repr
2110  def __init__(self, *args):
2111  """
2112  __init__(cttsmap self) -> cttsmap
2113  __init__(cttsmap self, GObservations const & obs) -> cttsmap
2114  __init__(cttsmap self, int argc, char *[] argv) -> cttsmap
2115  __init__(cttsmap self, cttsmap app) -> cttsmap
2116  """
2117  this = _tools.new_cttsmap(*args)
2118  try: self.this.append(this)
2119  except: self.this = this
2120  __swig_destroy__ = _tools.delete_cttsmap
2121  __del__ = lambda self : None;
2122  def process(self):
2123  """process(cttsmap self)"""
2124  return _tools.cttsmap_process(self)
2125 
2126  def save(self):
2127  """save(cttsmap self)"""
2128  return _tools.cttsmap_save(self)
2129 
2130  def publish(self, name=""):
2131  """
2132  publish(cttsmap self, std::string const & name="")
2133  publish(cttsmap self)
2134  """
2135  return _tools.cttsmap_publish(self, name)
2136 
2137  def tsmap(self):
2138  """tsmap(cttsmap self) -> GSkyMap const &"""
2139  return _tools.cttsmap_tsmap(self)
2140 
2141  def copy(self):
2142  """copy(cttsmap self) -> cttsmap"""
2143  return _tools.cttsmap_copy(self)
2144 
2145 cttsmap_swigregister = _tools.cttsmap_swigregister
2146 cttsmap_swigregister(cttsmap)
2147 
2148 class ctbutterfly(ctlikelihood):
2149  """Proxy of C++ ctbutterfly class"""
2150  __swig_setmethods__ = {}
2151  for _s in [ctlikelihood]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2152  __setattr__ = lambda self, name, value: _swig_setattr(self, ctbutterfly, name, value)
2153  __swig_getmethods__ = {}
2154  for _s in [ctlikelihood]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2155  __getattr__ = lambda self, name: _swig_getattr(self, ctbutterfly, name)
2156  __repr__ = _swig_repr
2157  def __init__(self, *args):
2158  """
2159  __init__(ctbutterfly self) -> ctbutterfly
2160  __init__(ctbutterfly self, GObservations const & obs) -> ctbutterfly
2161  __init__(ctbutterfly self, int argc, char *[] argv) -> ctbutterfly
2162  __init__(ctbutterfly self, ctbutterfly app) -> ctbutterfly
2163  """
2164  this = _tools.new_ctbutterfly(*args)
2165  try: self.this.append(this)
2166  except: self.this = this
2167  __swig_destroy__ = _tools.delete_ctbutterfly
2168  __del__ = lambda self : None;
2169  def process(self):
2170  """process(ctbutterfly self)"""
2171  return _tools.ctbutterfly_process(self)
2172 
2173  def save(self):
2174  """save(ctbutterfly self)"""
2175  return _tools.ctbutterfly_save(self)
2176 
2177  def butterfly(self):
2178  """butterfly(ctbutterfly self) -> GFits const &"""
2179  return _tools.ctbutterfly_butterfly(self)
2180 
2181  def copy(self):
2182  """copy(ctbutterfly self) -> ctbutterfly"""
2183  return _tools.ctbutterfly_copy(self)
2184 
2185 ctbutterfly_swigregister = _tools.ctbutterfly_swigregister
2186 ctbutterfly_swigregister(ctbutterfly)
2187 
2188 class ctulimit(ctlikelihood):
2189  """Proxy of C++ ctulimit class"""
2190  __swig_setmethods__ = {}
2191  for _s in [ctlikelihood]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2192  __setattr__ = lambda self, name, value: _swig_setattr(self, ctulimit, name, value)
2193  __swig_getmethods__ = {}
2194  for _s in [ctlikelihood]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2195  __getattr__ = lambda self, name: _swig_getattr(self, ctulimit, name)
2196  __repr__ = _swig_repr
2197  def __init__(self, *args):
2198  """
2199  __init__(ctulimit self) -> ctulimit
2200  __init__(ctulimit self, GObservations const & obs) -> ctulimit
2201  __init__(ctulimit self, int argc, char *[] argv) -> ctulimit
2202  __init__(ctulimit self, ctulimit app) -> ctulimit
2203  """
2204  this = _tools.new_ctulimit(*args)
2205  try: self.this.append(this)
2206  except: self.this = this
2207  __swig_destroy__ = _tools.delete_ctulimit
2208  __del__ = lambda self : None;
2209  def process(self):
2210  """process(ctulimit self)"""
2211  return _tools.ctulimit_process(self)
2212 
2213  def save(self):
2214  """save(ctulimit self)"""
2215  return _tools.ctulimit_save(self)
2216 
2217  def diff_ulimit(self):
2218  """diff_ulimit(ctulimit self) -> double const &"""
2219  return _tools.ctulimit_diff_ulimit(self)
2220 
2221  def flux_ulimit(self):
2222  """flux_ulimit(ctulimit self) -> double const &"""
2223  return _tools.ctulimit_flux_ulimit(self)
2224 
2225  def eflux_ulimit(self):
2226  """eflux_ulimit(ctulimit self) -> double const &"""
2227  return _tools.ctulimit_eflux_ulimit(self)
2228 
2229  def copy(self):
2230  """copy(ctulimit self) -> ctulimit"""
2231  return _tools.ctulimit_copy(self)
2232 
2233 ctulimit_swigregister = _tools.ctulimit_swigregister
2234 ctulimit_swigregister(ctulimit)
2235 
2236 class cterror(ctlikelihood):
2237  """Proxy of C++ cterror class"""
2238  __swig_setmethods__ = {}
2239  for _s in [ctlikelihood]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2240  __setattr__ = lambda self, name, value: _swig_setattr(self, cterror, name, value)
2241  __swig_getmethods__ = {}
2242  for _s in [ctlikelihood]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2243  __getattr__ = lambda self, name: _swig_getattr(self, cterror, name)
2244  __repr__ = _swig_repr
2245  def __init__(self, *args):
2246  """
2247  __init__(cterror self) -> cterror
2248  __init__(cterror self, GObservations const & obs) -> cterror
2249  __init__(cterror self, int argc, char *[] argv) -> cterror
2250  __init__(cterror self, cterror app) -> cterror
2251  """
2252  this = _tools.new_cterror(*args)
2253  try: self.this.append(this)
2254  except: self.this = this
2255  __swig_destroy__ = _tools.delete_cterror
2256  __del__ = lambda self : None;
2257  def process(self):
2258  """process(cterror self)"""
2259  return _tools.cterror_process(self)
2260 
2261  def save(self):
2262  """save(cterror self)"""
2263  return _tools.cterror_save(self)
2264 
2265  def copy(self):
2266  """copy(cterror self) -> cterror"""
2267  return _tools.cterror_copy(self)
2268 
2269 cterror_swigregister = _tools.cterror_swigregister
2270 cterror_swigregister(cterror)
2271 
2272 class ctprob(ctobservation):
2273  """Proxy of C++ ctprob class"""
2274  __swig_setmethods__ = {}
2275  for _s in [ctobservation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2276  __setattr__ = lambda self, name, value: _swig_setattr(self, ctprob, name, value)
2277  __swig_getmethods__ = {}
2278  for _s in [ctobservation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2279  __getattr__ = lambda self, name: _swig_getattr(self, ctprob, name)
2280  __repr__ = _swig_repr
2281  def __init__(self, *args):
2282  """
2283  __init__(ctprob self) -> ctprob
2284  __init__(ctprob self, GObservations const & obs) -> ctprob
2285  __init__(ctprob self, int argc, char *[] argv) -> ctprob
2286  __init__(ctprob self, ctprob app) -> ctprob
2287  """
2288  this = _tools.new_ctprob(*args)
2289  try: self.this.append(this)
2290  except: self.this = this
2291  __swig_destroy__ = _tools.delete_ctprob
2292  __del__ = lambda self : None;
2293  def process(self):
2294  """process(ctprob self)"""
2295  return _tools.ctprob_process(self)
2296 
2297  def save(self):
2298  """save(ctprob self)"""
2299  return _tools.ctprob_save(self)
2300 
2301  def publish(self, name=""):
2302  """
2303  publish(ctprob self, std::string const & name="")
2304  publish(ctprob self)
2305  """
2306  return _tools.ctprob_publish(self, name)
2307 
2308  def copy(self):
2309  """copy(ctprob self) -> ctprob"""
2310  return _tools.ctprob_copy(self)
2311 
2312 ctprob_swigregister = _tools.ctprob_swigregister
2313 ctprob_swigregister(ctprob)
2314 
2315 def test():
2316  from ctools.tests import test_python_ctools
2317  test_python_ctools.test(installed=True)
2318 
2319 # This file is compatible with both classic and new-style classes.
2320 
2321 
Time variability search tool.
Definition: ctfindvar.hpp:47
Event probability computation tool.
Definition: ctprob.hpp:46
Background cube generation tool.
Definition: ctbkgcube.hpp:44
Parameter error calculation tool.
Definition: cterror.hpp:42
Maximum likelihood fitting tool.
Definition: ctlike.hpp:42
Cube filter tool.
Definition: ctcubemask.hpp:47
Energy dispersion cube generation tool.
Definition: ctedispcube.hpp:44
Base class for ctools.
Definition: ctool.hpp:50
Upper limit calculation tool.
Definition: ctulimit.hpp:50
def test
Definition: __init__.py:116
TS map calculation tool.
Definition: cttsmap.hpp:55
Event binning tool.
Definition: ctbin.hpp:69
Model cube generation tool.
Definition: ctmodel.hpp:53
Observation simulator tool.
Definition: ctobssim.hpp:50
Sky mapping tool.
Definition: ctskymap.hpp:45
Base class for observation tools.
Event phase computation tool.
Definition: ctphase.hpp:48
Map cube generation tool.
Definition: ctmapcube.hpp:44
Data selection tool.
Definition: ctselect.hpp:46
PSF cube generation tool.
Definition: ctpsfcube.hpp:44
Exposure cube generation tool.
Definition: ctexpcube.hpp:44
Butterfly calculation tool.
Definition: ctbutterfly.hpp:55
Base class for likelihood tools.