Commit 23d4a06dd05bdf5e44fab9ccd73c6a67ee11ba08

Authored by Jürgen Knödlseder
Committed by Luigi Tibaldo
1 parent f06c50af

Change order of Python module imports

The order of Python module imports seems to impact the type casting capabilities. The import of the "model" module was moved down since when "GSkyRegionCircle" is used as an argument in the "model" module there is no casting to proxy classes anymore, and the Python interface does not work properly for sky regions. I moved a couple of other modules up since they may exhibit similar problems (#2961).
Showing 1 changed file with 5 additions and 5 deletions
pyext/gammalib/__init__.py.in
1 1 # ==========================================================================
2 2 # GammaLib Python module
3 3 #
4   -# Copyright (C) 2016-2018 Juergen Knoedlseder
  4 +# Copyright (C) 2016-2019 Juergen Knoedlseder
5 5 #
6 6 # This program is free software: you can redistribute it and/or modify
7 7 # it under the terms of the GNU General Public License as published by
... ... @@ -22,14 +22,14 @@ from gammalib.app import *
22 22 from gammalib.base import *
23 23 from gammalib.fits import *
24 24 from gammalib.linalg import *
25   -from gammalib.model import *
  25 +from gammalib.sky import *
26 26 from gammalib.numerics import *
27   -from gammalib.obs import *
28 27 from gammalib.opt import *
29   -from gammalib.sky import *
30 28 from gammalib.support import *
31   -from gammalib.test import *
32 29 from gammalib.xml import *
  30 +from gammalib.model import *
  31 +from gammalib.obs import *
  32 +from gammalib.test import *
33 33 from gammalib.xspec import *
34 34 from gammalib.vo import *
35 35 from gammalib.mwl import *
... ...