Commit 1e0ec9e5277097b607d9ed6bae0960e8ba44b16f

Authored by Jürgen Knödlseder
2 parents 9a25462a db8ed314

Merge branch 'fiximport' into integration

doc/source/user_manual/getting_started/python.rst
@@ -18,13 +18,6 @@ generally not very useful. @@ -18,13 +18,6 @@ generally not very useful.
18 >>> import gammalib 18 >>> import gammalib
19 >>> import ctools 19 >>> import ctools
20 20
21 -.. warning::  
22 -  
23 - The GammaLib module needs to be imported **before** the ctools  
24 - module so that GammaLib class types are handled correctly.  
25 - So make sure that you **always import the GammaLib module before the ctools  
26 - module.**  
27 -  
28 To illustrate how to use ctools from Python, below is a working example 21 To illustrate how to use ctools from Python, below is a working example
29 of an event list simulation using the :ref:`ctobssim` class. 22 of an event list simulation using the :ref:`ctobssim` class.
30 An instance ``sim`` of the :ref:`ctobssim` class is generated and user 23 An instance ``sim`` of the :ref:`ctobssim` class is generated and user
pyext/ctools/__init__.py
  1 +# import gammalib first
  2 +import gammalib
  3 +
1 # Import sub modules 4 # Import sub modules
2 from .tools import * 5 from .tools import *
3 #import obsutils (require explicit from ctools import obsutils) 6 #import obsutils (require explicit from ctools import obsutils)