9 from sys
import version_info
10 if version_info >= (2,6,0):
11 def swig_import_helper():
12 from os.path
import dirname
16 fp, pathname, description = imp.find_module(
'_tools', [dirname(__file__)])
22 _mod = imp.load_module(
'_tools', fp, pathname, description)
26 _tools = swig_import_helper()
27 del swig_import_helper
32 _swig_property = property
35 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
36 if (name ==
"thisown"):
return self.this.own(value)
38 if type(value).__name__ ==
'SwigPyObject':
39 self.__dict__[name] = value
41 method = class_type.__swig_setmethods__.get(name,
None)
42 if method:
return method(self,value)
44 self.__dict__[name] = value
46 raise AttributeError(
"You cannot add attributes to %s" % self)
48 def _swig_setattr(self,class_type,name,value):
49 return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
58 try: strthis =
"proxy of " + self.this.__repr__()
60 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
65 except AttributeError:
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")
78 __swig_destroy__ = _tools.delete_SwigPyIterator
79 __del__ =
lambda self :
None;
81 """value(SwigPyIterator self) -> PyObject *"""
82 return _tools.SwigPyIterator_value(self)
86 incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
87 incr(SwigPyIterator self) -> SwigPyIterator
89 return _tools.SwigPyIterator_incr(self, n)
93 decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
94 decr(SwigPyIterator self) -> SwigPyIterator
96 return _tools.SwigPyIterator_decr(self, n)
98 def distance(self, *args):
99 """distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
100 return _tools.SwigPyIterator_distance(self, *args)
102 def equal(self, *args):
103 """equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
104 return _tools.SwigPyIterator_equal(self, *args)
107 """copy(SwigPyIterator self) -> SwigPyIterator"""
108 return _tools.SwigPyIterator_copy(self)
111 """next(SwigPyIterator self) -> PyObject *"""
112 return _tools.SwigPyIterator_next(self)
115 """__next__(SwigPyIterator self) -> PyObject *"""
116 return _tools.SwigPyIterator___next__(self)
119 """previous(SwigPyIterator self) -> PyObject *"""
120 return _tools.SwigPyIterator_previous(self)
122 def advance(self, *args):
123 """advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
124 return _tools.SwigPyIterator_advance(self, *args)
126 def __eq__(self, *args):
127 """__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
128 return _tools.SwigPyIterator___eq__(self, *args)
130 def __ne__(self, *args):
131 """__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
132 return _tools.SwigPyIterator___ne__(self, *args)
134 def __iadd__(self, *args):
135 """__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
136 return _tools.SwigPyIterator___iadd__(self, *args)
138 def __isub__(self, *args):
139 """__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
140 return _tools.SwigPyIterator___isub__(self, *args)
142 def __add__(self, *args):
143 """__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
144 return _tools.SwigPyIterator___add__(self, *args)
146 def __sub__(self, *args):
148 __sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
149 __sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
151 return _tools.SwigPyIterator___sub__(self, *args)
153 def __iter__(self):
return self
154 SwigPyIterator_swigregister = _tools.SwigPyIterator_swigregister
155 SwigPyIterator_swigregister(SwigPyIterator)
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
165 """iterator(vector_int self) -> SwigPyIterator"""
166 return _tools.vector_int_iterator(self)
168 def __iter__(self):
return self.iterator()
169 def __nonzero__(self):
170 """__nonzero__(vector_int self) -> bool"""
171 return _tools.vector_int___nonzero__(self)
174 """__bool__(vector_int self) -> bool"""
175 return _tools.vector_int___bool__(self)
178 """__len__(vector_int self) -> std::vector< int >::size_type"""
179 return _tools.vector_int___len__(self)
182 """pop(vector_int self) -> std::vector< int >::value_type"""
183 return _tools.vector_int_pop(self)
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)
189 def __setslice__(self, *args):
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)
194 return _tools.vector_int___setslice__(self, *args)
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)
200 def __delitem__(self, *args):
202 __delitem__(vector_int self, std::vector< int >::difference_type i)
203 __delitem__(vector_int self, PySliceObject * slice)
205 return _tools.vector_int___delitem__(self, *args)
207 def __getitem__(self, *args):
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 &
212 return _tools.vector_int___getitem__(self, *args)
214 def __setitem__(self, *args):
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)
220 return _tools.vector_int___setitem__(self, *args)
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)
227 """empty(vector_int self) -> bool"""
228 return _tools.vector_int_empty(self)
231 """size(vector_int self) -> std::vector< int >::size_type"""
232 return _tools.vector_int_size(self)
235 """clear(vector_int self)"""
236 return _tools.vector_int_clear(self)
238 def swap(self, *args):
239 """swap(vector_int self, vector_int v)"""
240 return _tools.vector_int_swap(self, *args)
242 def get_allocator(self):
243 """get_allocator(vector_int self) -> std::vector< int >::allocator_type"""
244 return _tools.vector_int_get_allocator(self)
247 """begin(vector_int self) -> std::vector< int >::iterator"""
248 return _tools.vector_int_begin(self)
251 """end(vector_int self) -> std::vector< int >::iterator"""
252 return _tools.vector_int_end(self)
255 """rbegin(vector_int self) -> std::vector< int >::reverse_iterator"""
256 return _tools.vector_int_rbegin(self)
259 """rend(vector_int self) -> std::vector< int >::reverse_iterator"""
260 return _tools.vector_int_rend(self)
263 """pop_back(vector_int self)"""
264 return _tools.vector_int_pop_back(self)
266 def erase(self, *args):
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
271 return _tools.vector_int_erase(self, *args)
273 def __init__(self, *args):
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
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)
288 """front(vector_int self) -> std::vector< int >::value_type const &"""
289 return _tools.vector_int_front(self)
292 """back(vector_int self) -> std::vector< int >::value_type const &"""
293 return _tools.vector_int_back(self)
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)
299 def resize(self, *args):
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)
304 return _tools.vector_int_resize(self, *args)
306 def insert(self, *args):
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)
311 return _tools.vector_int_insert(self, *args)
313 def reserve(self, *args):
314 """reserve(vector_int self, std::vector< int >::size_type n)"""
315 return _tools.vector_int_reserve(self, *args)
318 """capacity(vector_int self) -> std::vector< int >::size_type"""
319 return _tools.vector_int_capacity(self)
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)
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
334 """iterator(vector_double self) -> SwigPyIterator"""
335 return _tools.vector_double_iterator(self)
337 def __iter__(self):
return self.iterator()
338 def __nonzero__(self):
339 """__nonzero__(vector_double self) -> bool"""
340 return _tools.vector_double___nonzero__(self)
343 """__bool__(vector_double self) -> bool"""
344 return _tools.vector_double___bool__(self)
347 """__len__(vector_double self) -> std::vector< double >::size_type"""
348 return _tools.vector_double___len__(self)
351 """pop(vector_double self) -> std::vector< double >::value_type"""
352 return _tools.vector_double_pop(self)
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)
358 def __setslice__(self, *args):
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)
364 return _tools.vector_double___setslice__(self, *args)
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)
370 def __delitem__(self, *args):
372 __delitem__(vector_double self, std::vector< double >::difference_type i)
373 __delitem__(vector_double self, PySliceObject * slice)
375 return _tools.vector_double___delitem__(self, *args)
377 def __getitem__(self, *args):
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 &
382 return _tools.vector_double___getitem__(self, *args)
384 def __setitem__(self, *args):
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)
390 return _tools.vector_double___setitem__(self, *args)
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)
397 """empty(vector_double self) -> bool"""
398 return _tools.vector_double_empty(self)
401 """size(vector_double self) -> std::vector< double >::size_type"""
402 return _tools.vector_double_size(self)
405 """clear(vector_double self)"""
406 return _tools.vector_double_clear(self)
408 def swap(self, *args):
409 """swap(vector_double self, vector_double v)"""
410 return _tools.vector_double_swap(self, *args)
412 def get_allocator(self):
413 """get_allocator(vector_double self) -> std::vector< double >::allocator_type"""
414 return _tools.vector_double_get_allocator(self)
417 """begin(vector_double self) -> std::vector< double >::iterator"""
418 return _tools.vector_double_begin(self)
421 """end(vector_double self) -> std::vector< double >::iterator"""
422 return _tools.vector_double_end(self)
425 """rbegin(vector_double self) -> std::vector< double >::reverse_iterator"""
426 return _tools.vector_double_rbegin(self)
429 """rend(vector_double self) -> std::vector< double >::reverse_iterator"""
430 return _tools.vector_double_rend(self)
433 """pop_back(vector_double self)"""
434 return _tools.vector_double_pop_back(self)
436 def erase(self, *args):
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
441 return _tools.vector_double_erase(self, *args)
443 def __init__(self, *args):
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
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)
458 """front(vector_double self) -> std::vector< double >::value_type const &"""
459 return _tools.vector_double_front(self)
462 """back(vector_double self) -> std::vector< double >::value_type const &"""
463 return _tools.vector_double_back(self)
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)
469 def resize(self, *args):
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)
474 return _tools.vector_double_resize(self, *args)
476 def insert(self, *args):
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)
481 return _tools.vector_double_insert(self, *args)
483 def reserve(self, *args):
484 """reserve(vector_double self, std::vector< double >::size_type n)"""
485 return _tools.vector_double_reserve(self, *args)
488 """capacity(vector_double self) -> std::vector< double >::size_type"""
489 return _tools.vector_double_capacity(self)
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)
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
504 """iterator(vector_bool self) -> SwigPyIterator"""
505 return _tools.vector_bool_iterator(self)
507 def __iter__(self):
return self.iterator()
508 def __nonzero__(self):
509 """__nonzero__(vector_bool self) -> bool"""
510 return _tools.vector_bool___nonzero__(self)
513 """__bool__(vector_bool self) -> bool"""
514 return _tools.vector_bool___bool__(self)
517 """__len__(vector_bool self) -> std::vector< bool >::size_type"""
518 return _tools.vector_bool___len__(self)
521 """pop(vector_bool self) -> std::vector< bool >::value_type"""
522 return _tools.vector_bool_pop(self)
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)
528 def __setslice__(self, *args):
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)
533 return _tools.vector_bool___setslice__(self, *args)
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)
539 def __delitem__(self, *args):
541 __delitem__(vector_bool self, std::vector< bool >::difference_type i)
542 __delitem__(vector_bool self, PySliceObject * slice)
544 return _tools.vector_bool___delitem__(self, *args)
546 def __getitem__(self, *args):
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
551 return _tools.vector_bool___getitem__(self, *args)
553 def __setitem__(self, *args):
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)
559 return _tools.vector_bool___setitem__(self, *args)
561 def append(self, *args):
562 """append(vector_bool self, std::vector< bool >::value_type x)"""
563 return _tools.vector_bool_append(self, *args)
566 """empty(vector_bool self) -> bool"""
567 return _tools.vector_bool_empty(self)
570 """size(vector_bool self) -> std::vector< bool >::size_type"""
571 return _tools.vector_bool_size(self)
574 """clear(vector_bool self)"""
575 return _tools.vector_bool_clear(self)
577 def swap(self, *args):
578 """swap(vector_bool self, vector_bool v)"""
579 return _tools.vector_bool_swap(self, *args)
581 def get_allocator(self):
582 """get_allocator(vector_bool self) -> std::vector< bool >::allocator_type"""
583 return _tools.vector_bool_get_allocator(self)
586 """begin(vector_bool self) -> std::vector< bool >::iterator"""
587 return _tools.vector_bool_begin(self)
590 """end(vector_bool self) -> std::vector< bool >::iterator"""
591 return _tools.vector_bool_end(self)
594 """rbegin(vector_bool self) -> std::vector< bool >::reverse_iterator"""
595 return _tools.vector_bool_rbegin(self)
598 """rend(vector_bool self) -> std::vector< bool >::reverse_iterator"""
599 return _tools.vector_bool_rend(self)
602 """pop_back(vector_bool self)"""
603 return _tools.vector_bool_pop_back(self)
605 def erase(self, *args):
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
610 return _tools.vector_bool_erase(self, *args)
612 def __init__(self, *args):
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
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)
627 """front(vector_bool self) -> std::vector< bool >::value_type"""
628 return _tools.vector_bool_front(self)
631 """back(vector_bool self) -> std::vector< bool >::value_type"""
632 return _tools.vector_bool_back(self)
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)
638 def resize(self, *args):
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)
643 return _tools.vector_bool_resize(self, *args)
645 def insert(self, *args):
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)
650 return _tools.vector_bool_insert(self, *args)
652 def reserve(self, *args):
653 """reserve(vector_bool self, std::vector< bool >::size_type n)"""
654 return _tools.vector_bool_reserve(self, *args)
657 """capacity(vector_bool self) -> std::vector< bool >::size_type"""
658 return _tools.vector_bool_capacity(self)
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)
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
673 """iterator(vector_sring self) -> SwigPyIterator"""
674 return _tools.vector_sring_iterator(self)
676 def __iter__(self):
return self.iterator()
677 def __nonzero__(self):
678 """__nonzero__(vector_sring self) -> bool"""
679 return _tools.vector_sring___nonzero__(self)
682 """__bool__(vector_sring self) -> bool"""
683 return _tools.vector_sring___bool__(self)
686 """__len__(vector_sring self) -> std::vector< std::string >::size_type"""
687 return _tools.vector_sring___len__(self)
690 """pop(vector_sring self) -> std::vector< std::string >::value_type"""
691 return _tools.vector_sring_pop(self)
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)
697 def __setslice__(self, *args):
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)
703 return _tools.vector_sring___setslice__(self, *args)
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)
709 def __delitem__(self, *args):
711 __delitem__(vector_sring self, std::vector< std::string >::difference_type i)
712 __delitem__(vector_sring self, PySliceObject * slice)
714 return _tools.vector_sring___delitem__(self, *args)
716 def __getitem__(self, *args):
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 &
721 return _tools.vector_sring___getitem__(self, *args)
723 def __setitem__(self, *args):
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)
729 return _tools.vector_sring___setitem__(self, *args)
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)
736 """empty(vector_sring self) -> bool"""
737 return _tools.vector_sring_empty(self)
740 """size(vector_sring self) -> std::vector< std::string >::size_type"""
741 return _tools.vector_sring_size(self)
744 """clear(vector_sring self)"""
745 return _tools.vector_sring_clear(self)
747 def swap(self, *args):
748 """swap(vector_sring self, vector_sring v)"""
749 return _tools.vector_sring_swap(self, *args)
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)
756 """begin(vector_sring self) -> std::vector< std::string >::iterator"""
757 return _tools.vector_sring_begin(self)
760 """end(vector_sring self) -> std::vector< std::string >::iterator"""
761 return _tools.vector_sring_end(self)
764 """rbegin(vector_sring self) -> std::vector< std::string >::reverse_iterator"""
765 return _tools.vector_sring_rbegin(self)
768 """rend(vector_sring self) -> std::vector< std::string >::reverse_iterator"""
769 return _tools.vector_sring_rend(self)
772 """pop_back(vector_sring self)"""
773 return _tools.vector_sring_pop_back(self)
775 def erase(self, *args):
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
780 return _tools.vector_sring_erase(self, *args)
782 def __init__(self, *args):
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
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)
797 """front(vector_sring self) -> std::vector< std::string >::value_type const &"""
798 return _tools.vector_sring_front(self)
801 """back(vector_sring self) -> std::vector< std::string >::value_type const &"""
802 return _tools.vector_sring_back(self)
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)
808 def resize(self, *args):
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)
813 return _tools.vector_sring_resize(self, *args)
815 def insert(self, *args):
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)
821 return _tools.vector_sring_insert(self, *args)
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)
828 """capacity(vector_sring self) -> std::vector< std::string >::size_type"""
829 return _tools.vector_sring_capacity(self)
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)
836 import gammalib.support
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;
852 """process(ctool self)"""
853 return _tools.ctool_process(self)
856 """save(ctool self)"""
857 return _tools.ctool_save(self)
860 """run(ctool self)"""
861 return _tools.ctool_run(self)
864 """execute(ctool self)"""
865 return _tools.ctool_execute(self)
867 def _setup_observations(self, *args):
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)
874 return _tools.ctool__setup_observations(self, *args)
876 def _setup_models(self, *args):
878 _setup_models(ctool self, GObservations & obs, std::string const & name="")
879 _setup_models(ctool self, GObservations & obs)
881 return _tools.ctool__setup_models(self, *args)
883 def _create_ebounds(self):
884 """_create_ebounds(ctool self) -> GEbounds"""
885 return _tools.ctool__create_ebounds(self)
887 def _create_energies(self):
888 """_create_energies(ctool self) -> GEnergies"""
889 return _tools.ctool__create_energies(self)
891 def _create_map(self, *args):
892 """_create_map(ctool self, GObservations const & obs) -> GSkyMap"""
893 return _tools.ctool__create_map(self, *args)
895 def _create_cube(self, *args):
896 """_create_cube(ctool self, GObservations const & obs) -> GCTAEventCube"""
897 return _tools.ctool__create_cube(self, *args)
899 def _create_cta_obs(self):
900 """_create_cta_obs(ctool self) -> GCTAObservation"""
901 return _tools.ctool__create_cta_obs(self)
903 def _require_inobs(self, *args):
904 """_require_inobs(ctool self, std::string const & method)"""
905 return _tools.ctool__require_inobs(self, *args)
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)
911 def _get_roi(self, *args):
913 _get_roi(ctool self, GCTAPointing const & pnt=GCTAPointing()) -> GCTARoi
914 _get_roi(ctool self) -> GCTARoi
916 return _tools.ctool__get_roi(self, *args)
918 def _get_ebounds(self):
919 """_get_ebounds(ctool self) -> GEbounds"""
920 return _tools.ctool__get_ebounds(self)
922 def _get_gti(self, *args):
923 """_get_gti(ctool self, GTimeReference const & ref) -> GGti"""
924 return _tools.ctool__get_gti(self, *args)
926 def _get_pointing(self):
927 """_get_pointing(ctool self) -> GCTAPointing"""
928 return _tools.ctool__get_pointing(self)
930 def _get_skydir(self):
931 """_get_skydir(ctool self) -> GSkyDir"""
932 return _tools.ctool__get_skydir(self)
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)
938 def _is_stacked(self):
939 """_is_stacked(ctool self) -> bool"""
940 return _tools.ctool__is_stacked(self)
943 """_is_onoff(ctool self) -> bool"""
944 return _tools.ctool__is_onoff(self)
946 def _set_response(self, *args):
947 """_set_response(ctool self, GObservations & obs)"""
948 return _tools.ctool__set_response(self, *args)
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)
954 def _restore_edisp(self, *args):
955 """_restore_edisp(ctool self, GObservations & obs, vector_bool edisp)"""
956 return _tools.ctool__restore_edisp(self, *args)
958 def _set_obs_response(self, *args):
959 """_set_obs_response(ctool self, GCTAObservation * obs)"""
960 return _tools.ctool__set_obs_response(self, *args)
962 def _get_observations(self, get_response=True):
964 _get_observations(ctool self, bool const & get_response=True) -> GObservations
965 _get_observations(ctool self) -> GObservations
967 return _tools.ctool__get_observations(self, get_response)
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)
973 def _get_current_rss(self):
974 """_get_current_rss(ctool self) -> size_t"""
975 return _tools.ctool__get_current_rss(self)
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)
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)
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)
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)
993 def _save_event_list(self, *args):
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)
998 return _tools.ctool__save_event_list(self, *args)
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)
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)
1008 def _log_parameters(self, *args):
1009 """_log_parameters(ctool self, int const & chatter)"""
1010 return _tools.ctool__log_parameters(self, *args)
1012 def _log_observations(self, *args):
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)
1017 return _tools.ctool__log_observations(self, *args)
1019 def _log_models(self, *args):
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)
1024 return _tools.ctool__log_models(self, *args)
1026 def _read_ahead(self, *args):
1028 _read_ahead(ctool self) -> bool const
1029 _read_ahead(ctool self, bool const & flag)
1031 return _tools.ctool__read_ahead(self, *args)
1033 def __getstate__(self):
1034 state = (gammalib.GApplication.__getstate__(self),)
1036 def __setstate__(self, state):
1037 gammalib.GApplication.__setstate__(self, state[0])
1039 ctool_swigregister = _tools.ctool_swigregister
1040 ctool_swigregister(ctool)
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):
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
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;
1064 """process(cscript self)"""
1065 return _tools.cscript_process(self)
1068 """save(cscript self)"""
1069 return _tools.cscript_save(self)
1071 def __getstate__(self):
1072 state = (gammalib.GApplication.__getstate__(self),)
1074 def __setstate__(self, state):
1075 gammalib.GApplication.__setstate__(self, state[0])
1077 cscript_swigregister = _tools.cscript_swigregister
1078 cscript_swigregister(cscript)
1084 def _set_input_obs(self, argv):
1085 if len(argv) > 0
and isinstance(argv[0],gammalib.GObservations):
1089 obs = gammalib.GObservations()
1091 cscript._set_input_obs = _set_input_obs
1094 def _init_cscript(self, name, version, argv):
1096 if len(argv) == 3
and argv[0] == name
and argv[1] == version:
1097 cscript.__init__(self, name, version, argv[2])
1099 cscript.__init__(self, name, version, *argv)
1101 cscript.__init__(self, name, version)
1103 self._log.date(
True)
1104 cscript._init_cscript = _init_cscript
1126 def _pardict(self, *args):
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())
1139 d[par.name()] = str(par.current_value())
1141 elif len(args) == 1:
1143 self[key] = args[0][key]
1145 raise TypeError(
'pardict() takes 0 or 1 arguments (%d given)' % len(args))
1146 ctool.pardict = _pardict
1147 cscript.pardict = _pardict
1152 if self._logDebug():
1153 self._log.cout(
True)
1162 self._read_ahead(
True)
1163 if self._logDebug():
1164 self._log.cout(
True)
1168 cscript.execute = _execute
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;
1183 """process(ctobservation self)"""
1184 return _tools.ctobservation_process(self)
1187 """save(ctobservation self)"""
1188 return _tools.ctobservation_save(self)
1190 def obs(self, *args):
1192 obs(ctobservation self, GObservations const & obs)
1193 obs(ctobservation self) -> GObservations const &
1195 return _tools.ctobservation_obs(self, *args)
1197 def _first_unbinned_observation(self):
1198 """_first_unbinned_observation(ctobservation self) -> GCTAObservation *"""
1199 return _tools.ctobservation__first_unbinned_observation(self)
1201 def _next_unbinned_observation(self):
1202 """_next_unbinned_observation(ctobservation self) -> GCTAObservation *"""
1203 return _tools.ctobservation__next_unbinned_observation(self)
1205 def _read_ogip_keywords(self, *args):
1206 """_read_ogip_keywords(ctobservation self, GFitsHDU * hdu)"""
1207 return _tools.ctobservation__read_ogip_keywords(self, *args)
1209 def _write_ogip_keywords(self, *args):
1210 """_write_ogip_keywords(ctobservation self, GFitsHDU * hdu)"""
1211 return _tools.ctobservation__write_ogip_keywords(self, *args)
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)
1217 def _set_obs_bounds(self):
1218 """_set_obs_bounds(ctobservation self)"""
1219 return _tools.ctobservation__set_obs_bounds(self)
1221 def _save_events_fits(self):
1222 """_save_events_fits(ctobservation self)"""
1223 return _tools.ctobservation__save_events_fits(self)
1225 def _save_events_xml(self):
1226 """_save_events_xml(ctobservation self)"""
1227 return _tools.ctobservation__save_events_xml(self)
1229 ctobservation_swigregister = _tools.ctobservation_swigregister
1230 ctobservation_swigregister(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):
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
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;
1255 """process(csobservation self)"""
1256 return _tools.csobservation_process(self)
1259 """save(csobservation self)"""
1260 return _tools.csobservation_save(self)
1262 def __getstate__(self):
1263 state = (ctool.__getstate__(self), self.obs())
1265 def __setstate__(self, state):
1266 ctool.__setstate__(self, state[0])
1269 csobservation_swigregister = _tools.csobservation_swigregister
1270 csobservation_swigregister(csobservation)
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])
1280 if len(argv) == 3
and argv[0] == name
and argv[1] == version:
1281 csobservation.__init__(self, name, version, argv[2])
1283 csobservation.__init__(self, name, version, *argv)
1285 csobservation.__init__(self, name, version)
1287 self._log.date(
True)
1288 csobservation._init_csobservation = _init_csobservation
1291 def _unbinned_observations(self):
1292 obs = self._first_unbinned_observation()
1295 obs = self._next_unbinned_observation()
1296 ctool._unbinned_observations = _unbinned_observations
1297 cscript._unbinned_observations = _unbinned_observations
1301 if self._logDebug():
1302 self._log.cout(
True)
1306 csobservation.run = _run
1311 self._read_ahead(
True)
1312 if self._logDebug():
1313 self._log.cout(
True)
1317 csobservation.execute = _execute
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;
1333 """process(ctlikelihood self)"""
1334 return _tools.ctlikelihood_process(self)
1337 """save(ctlikelihood self)"""
1338 return _tools.ctlikelihood_save(self)
1340 def opt(self, *args):
1342 opt(ctlikelihood self, GOptimizer opt)
1343 opt(ctlikelihood self) -> GOptimizer
1345 return _tools.ctlikelihood_opt(self, *args)
1347 def _evaluate(self, *args):
1348 """_evaluate(ctlikelihood self, GModelPar & par, double const & value) -> double"""
1349 return _tools.ctlikelihood__evaluate(self, *args)
1351 ctlikelihood_swigregister = _tools.ctlikelihood_swigregister
1352 ctlikelihood_swigregister(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):
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
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;
1377 """process(cslikelihood self)"""
1378 return _tools.cslikelihood_process(self)
1381 """save(cslikelihood self)"""
1382 return _tools.cslikelihood_save(self)
1384 def __getstate__(self):
1385 state = (ctool.__getstate__(self), self.obs())
1387 def __setstate__(self, state):
1388 ctool.__setstate__(self, state[0])
1391 cslikelihood_swigregister = _tools.cslikelihood_swigregister
1392 cslikelihood_swigregister(cslikelihood)
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])
1402 if len(argv) == 3
and argv[0] == name
and argv[1] == version:
1403 cslikelihood.__init__(self, name, version, argv[2])
1405 cslikelihood.__init__(self, name, version, *argv)
1407 cslikelihood.__init__(self, name, version)
1409 self._log.date(
True)
1410 cslikelihood._init_cslikelihood = _init_cslikelihood
1414 if self._logDebug():
1415 self._log.cout(
True)
1419 cslikelihood.run = _run
1424 self._read_ahead(
True)
1425 if self._logDebug():
1426 self._log.cout(
True)
1430 cslikelihood.execute = _execute
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):
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
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;
1454 """process(ctfindvar self)"""
1455 return _tools.ctfindvar_process(self)
1458 """save(ctfindvar self)"""
1459 return _tools.ctfindvar_save(self)
1462 """copy(ctfindvar self) -> ctfindvar"""
1463 return _tools.ctfindvar_copy(self)
1465 ctfindvar_swigregister = _tools.ctfindvar_swigregister
1466 ctfindvar_swigregister(ctfindvar)
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):
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
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;
1490 """process(ctbin self)"""
1491 return _tools.ctbin_process(self)
1494 """cubes(ctbin self) -> int"""
1495 return _tools.ctbin_cubes(self)
1497 def cube(self, index=0):
1499 cube(ctbin self, int const & index=0) -> GCTAEventCube const
1500 cube(ctbin self) -> GCTAEventCube const &
1502 return _tools.ctbin_cube(self, index)
1505 """save(ctbin self)"""
1506 return _tools.ctbin_save(self)
1508 def publish(self, name=""):
1510 publish(ctbin self, std::string const & name="")
1513 return _tools.ctbin_publish(self, name)
1516 """copy(ctbin self) -> ctbin"""
1517 return _tools.ctbin_copy(self)
1519 ctbin_swigregister = _tools.ctbin_swigregister
1520 ctbin_swigregister(ctbin)
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):
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
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;
1544 """process(ctobssim self)"""
1545 return _tools.ctobssim_process(self)
1548 """save(ctobssim self)"""
1549 return _tools.ctobssim_save(self)
1551 def publish(self, name=""):
1553 publish(ctobssim self, std::string const & name="")
1554 publish(ctobssim self)
1556 return _tools.ctobssim_publish(self, name)
1558 def max_rate(self, *args):
1560 max_rate(ctobssim self) -> double const
1561 max_rate(ctobssim self, double const & max_rate)
1563 return _tools.ctobssim_max_rate(self, *args)
1565 def models(self, *args):
1566 """models(ctobssim self, GModels const & models)"""
1567 return _tools.ctobssim_models(self, *args)
1570 """copy(ctobssim self) -> ctobssim"""
1571 return _tools.ctobssim_copy(self)
1573 ctobssim_swigregister = _tools.ctobssim_swigregister
1574 ctobssim_swigregister(ctobssim)
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):
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
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;
1598 """process(ctlike self)"""
1599 return _tools.ctlike_process(self)
1602 """save(ctlike self)"""
1603 return _tools.ctlike_save(self)
1606 """iter(ctlike self) -> int const &"""
1607 return _tools.ctlike_iter(self)
1610 """logL(ctlike self) -> double const &"""
1611 return _tools.ctlike_logL(self)
1614 """nobs(ctlike self) -> double const &"""
1615 return _tools.ctlike_nobs(self)
1618 """npred(ctlike self) -> double const &"""
1619 return _tools.ctlike_npred(self)
1622 """copy(ctlike self) -> ctlike"""
1623 return _tools.ctlike_copy(self)
1625 ctlike_swigregister = _tools.ctlike_swigregister
1626 ctlike_swigregister(ctlike)
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):
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
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;
1650 """process(ctmodel self)"""
1651 return _tools.ctmodel_process(self)
1654 """save(ctmodel self)"""
1655 return _tools.ctmodel_save(self)
1657 def publish(self, name=""):
1659 publish(ctmodel self, std::string const & name="")
1660 publish(ctmodel self)
1662 return _tools.ctmodel_publish(self, name)
1664 def cube(self, *args):
1666 cube(ctmodel self) -> GCTAEventCube const
1667 cube(ctmodel self, GCTAEventCube const & cube)
1669 return _tools.ctmodel_cube(self, *args)
1671 def models(self, *args):
1672 """models(ctmodel self, GModels const & models)"""
1673 return _tools.ctmodel_models(self, *args)
1676 """copy(ctmodel self) -> ctmodel"""
1677 return _tools.ctmodel_copy(self)
1679 ctmodel_swigregister = _tools.ctmodel_swigregister
1680 ctmodel_swigregister(ctmodel)
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):
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
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;
1704 """process(ctselect self)"""
1705 return _tools.ctselect_process(self)
1708 """save(ctselect self)"""
1709 return _tools.ctselect_save(self)
1711 def publish(self, name=""):
1713 publish(ctselect self, std::string const & name="")
1714 publish(ctselect self)
1716 return _tools.ctselect_publish(self, name)
1719 """copy(ctselect self) -> ctselect"""
1720 return _tools.ctselect_copy(self)
1722 ctselect_swigregister = _tools.ctselect_swigregister
1723 ctselect_swigregister(ctselect)
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):
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
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;
1747 """process(ctphase self)"""
1748 return _tools.ctphase_process(self)
1751 """save(ctphase self)"""
1752 return _tools.ctphase_save(self)
1754 def publish(self, name=""):
1756 publish(ctphase self, std::string const & name="")
1757 publish(ctphase self)
1759 return _tools.ctphase_publish(self, name)
1762 """copy(ctphase self) -> ctphase"""
1763 return _tools.ctphase_copy(self)
1765 ctphase_swigregister = _tools.ctphase_swigregister
1766 ctphase_swigregister(ctphase)
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):
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
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;
1790 """process(ctskymap self)"""
1791 return _tools.ctskymap_process(self)
1794 """save(ctskymap self)"""
1795 return _tools.ctskymap_save(self)
1797 def publish(self, name=""):
1799 publish(ctskymap self, std::string const & name="")
1800 publish(ctskymap self)
1802 return _tools.ctskymap_publish(self, name)
1805 """skymap(ctskymap self) -> GSkyMap const &"""
1806 return _tools.ctskymap_skymap(self)
1809 """fits(ctskymap self) -> GFits const &"""
1810 return _tools.ctskymap_fits(self)
1812 def exclusion_map(self, *args):
1814 exclusion_map(ctskymap self, GSkyRegionMap const & exclusion_map)
1815 exclusion_map(ctskymap self) -> GSkyRegionMap
1817 return _tools.ctskymap_exclusion_map(self, *args)
1820 """copy(ctskymap self) -> ctskymap"""
1821 return _tools.ctskymap_copy(self)
1823 ctskymap_swigregister = _tools.ctskymap_swigregister
1824 ctskymap_swigregister(ctskymap)
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):
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
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;
1848 """process(ctexpcube self)"""
1849 return _tools.ctexpcube_process(self)
1852 """save(ctexpcube self)"""
1853 return _tools.ctexpcube_save(self)
1855 def publish(self, name=""):
1857 publish(ctexpcube self, std::string const & name="")
1858 publish(ctexpcube self)
1860 return _tools.ctexpcube_publish(self, name)
1863 """expcube(ctexpcube self) -> GCTACubeExposure const &"""
1864 return _tools.ctexpcube_expcube(self)
1867 """copy(ctexpcube self) -> ctexpcube"""
1868 return _tools.ctexpcube_copy(self)
1870 ctexpcube_swigregister = _tools.ctexpcube_swigregister
1871 ctexpcube_swigregister(ctexpcube)
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):
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
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;
1895 """process(ctpsfcube self)"""
1896 return _tools.ctpsfcube_process(self)
1899 """save(ctpsfcube self)"""
1900 return _tools.ctpsfcube_save(self)
1903 """psfcube(ctpsfcube self) -> GCTACubePsf const &"""
1904 return _tools.ctpsfcube_psfcube(self)
1907 """copy(ctpsfcube self) -> ctpsfcube"""
1908 return _tools.ctpsfcube_copy(self)
1910 ctpsfcube_swigregister = _tools.ctpsfcube_swigregister
1911 ctpsfcube_swigregister(ctpsfcube)
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):
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
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;
1935 """process(ctedispcube self)"""
1936 return _tools.ctedispcube_process(self)
1939 """save(ctedispcube self)"""
1940 return _tools.ctedispcube_save(self)
1942 def edispcube(self):
1943 """edispcube(ctedispcube self) -> GCTACubeEdisp const &"""
1944 return _tools.ctedispcube_edispcube(self)
1947 """copy(ctedispcube self) -> ctedispcube"""
1948 return _tools.ctedispcube_copy(self)
1950 ctedispcube_swigregister = _tools.ctedispcube_swigregister
1951 ctedispcube_swigregister(ctedispcube)
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):
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
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;
1975 """process(ctbkgcube self)"""
1976 return _tools.ctbkgcube_process(self)
1979 """save(ctbkgcube self)"""
1980 return _tools.ctbkgcube_save(self)
1982 def publish(self, name=""):
1984 publish(ctbkgcube self, std::string const & name="")
1985 publish(ctbkgcube self)
1987 return _tools.ctbkgcube_publish(self, name)
1989 def cntcube(self, *args):
1990 """cntcube(ctbkgcube self, GCTAEventCube const & cntcube)"""
1991 return _tools.ctbkgcube_cntcube(self, *args)
1994 """bkgcube(ctbkgcube self) -> GCTACubeBackground const &"""
1995 return _tools.ctbkgcube_bkgcube(self)
1998 """models(ctbkgcube self) -> GModels const &"""
1999 return _tools.ctbkgcube_models(self)
2002 """copy(ctbkgcube self) -> ctbkgcube"""
2003 return _tools.ctbkgcube_copy(self)
2005 ctbkgcube_swigregister = _tools.ctbkgcube_swigregister
2006 ctbkgcube_swigregister(ctbkgcube)
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):
2019 __init__(ctmapcube self) -> ctmapcube
2020 __init__(ctmapcube self, int argc, char *[] argv) -> ctmapcube
2021 __init__(ctmapcube self, ctmapcube app) -> ctmapcube
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;
2029 """process(ctmapcube self)"""
2030 return _tools.ctmapcube_process(self)
2033 """save(ctmapcube self)"""
2034 return _tools.ctmapcube_save(self)
2036 def publish(self, name=""):
2038 publish(ctmapcube self, std::string const & name="")
2039 publish(ctmapcube self)
2041 return _tools.ctmapcube_publish(self, name)
2044 """mapcube(ctmapcube self) -> GModelSpatialDiffuseCube const &"""
2045 return _tools.ctmapcube_mapcube(self)
2047 def models(self, *args):
2048 """models(ctmapcube self, GModels const & models)"""
2049 return _tools.ctmapcube_models(self, *args)
2052 """copy(ctmapcube self) -> ctmapcube"""
2053 return _tools.ctmapcube_copy(self)
2055 ctmapcube_swigregister = _tools.ctmapcube_swigregister
2056 ctmapcube_swigregister(ctmapcube)
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):
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
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;
2080 """process(ctcubemask self)"""
2081 return _tools.ctcubemask_process(self)
2084 """save(ctcubemask self)"""
2085 return _tools.ctcubemask_save(self)
2087 def publish(self, name=""):
2089 publish(ctcubemask self, std::string const & name="")
2090 publish(ctcubemask self)
2092 return _tools.ctcubemask_publish(self, name)
2095 """copy(ctcubemask self) -> ctcubemask"""
2096 return _tools.ctcubemask_copy(self)
2098 ctcubemask_swigregister = _tools.ctcubemask_swigregister
2099 ctcubemask_swigregister(ctcubemask)
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):
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
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;
2123 """process(cttsmap self)"""
2124 return _tools.cttsmap_process(self)
2127 """save(cttsmap self)"""
2128 return _tools.cttsmap_save(self)
2130 def publish(self, name=""):
2132 publish(cttsmap self, std::string const & name="")
2133 publish(cttsmap self)
2135 return _tools.cttsmap_publish(self, name)
2138 """tsmap(cttsmap self) -> GSkyMap const &"""
2139 return _tools.cttsmap_tsmap(self)
2142 """copy(cttsmap self) -> cttsmap"""
2143 return _tools.cttsmap_copy(self)
2145 cttsmap_swigregister = _tools.cttsmap_swigregister
2146 cttsmap_swigregister(cttsmap)
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):
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
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;
2170 """process(ctbutterfly self)"""
2171 return _tools.ctbutterfly_process(self)
2174 """save(ctbutterfly self)"""
2175 return _tools.ctbutterfly_save(self)
2177 def butterfly(self):
2178 """butterfly(ctbutterfly self) -> GFits const &"""
2179 return _tools.ctbutterfly_butterfly(self)
2182 """copy(ctbutterfly self) -> ctbutterfly"""
2183 return _tools.ctbutterfly_copy(self)
2185 ctbutterfly_swigregister = _tools.ctbutterfly_swigregister
2186 ctbutterfly_swigregister(ctbutterfly)
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):
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
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;
2210 """process(ctulimit self)"""
2211 return _tools.ctulimit_process(self)
2214 """save(ctulimit self)"""
2215 return _tools.ctulimit_save(self)
2217 def diff_ulimit(self):
2218 """diff_ulimit(ctulimit self) -> double const &"""
2219 return _tools.ctulimit_diff_ulimit(self)
2221 def flux_ulimit(self):
2222 """flux_ulimit(ctulimit self) -> double const &"""
2223 return _tools.ctulimit_flux_ulimit(self)
2225 def eflux_ulimit(self):
2226 """eflux_ulimit(ctulimit self) -> double const &"""
2227 return _tools.ctulimit_eflux_ulimit(self)
2230 """copy(ctulimit self) -> ctulimit"""
2231 return _tools.ctulimit_copy(self)
2233 ctulimit_swigregister = _tools.ctulimit_swigregister
2234 ctulimit_swigregister(ctulimit)
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):
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
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;
2258 """process(cterror self)"""
2259 return _tools.cterror_process(self)
2262 """save(cterror self)"""
2263 return _tools.cterror_save(self)
2266 """copy(cterror self) -> cterror"""
2267 return _tools.cterror_copy(self)
2269 cterror_swigregister = _tools.cterror_swigregister
2270 cterror_swigregister(cterror)
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):
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
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;
2294 """process(ctprob self)"""
2295 return _tools.ctprob_process(self)
2298 """save(ctprob self)"""
2299 return _tools.ctprob_save(self)
2301 def publish(self, name=""):
2303 publish(ctprob self, std::string const & name="")
2304 publish(ctprob self)
2306 return _tools.ctprob_publish(self, name)
2309 """copy(ctprob self) -> ctprob"""
2310 return _tools.ctprob_copy(self)
2312 ctprob_swigregister = _tools.ctprob_swigregister
2313 ctprob_swigregister(ctprob)
2316 from ctools.tests
import test_python_ctools
2317 test_python_ctools.test(installed=
True)
Time variability search tool.
Event probability computation tool.
Background cube generation tool.
Parameter error calculation tool.
Maximum likelihood fitting tool.
Energy dispersion cube generation tool.
Upper limit calculation tool.
Model cube generation tool.
Observation simulator tool.
Base class for observation tools.
Event phase computation tool.
Map cube generation tool.
PSF cube generation tool.
Exposure cube generation tool.
Butterfly calculation tool.
Base class for likelihood tools.