Commit a236a57ab87382cd4e715deff03bcca5a6d40a38
1 parent
7e15a026
Move %import directive to model.i file.
Showing
2 changed files
with
4 additions
and
3 deletions
pyext/GModels.i
| ... | ... | @@ -34,9 +34,6 @@ |
| 34 | 34 | #include "GTools.hpp" |
| 35 | 35 | %} |
| 36 | 36 | |
| 37 | -/* __ Inform about base classes ___________________________________________*/ | |
| 38 | -%import(module="opt") "GOptimizerPars.i"; | |
| 39 | - | |
| 40 | 37 | /* __ Includes ___________________________________________________________ */ |
| 41 | 38 | %include "GTypemaps.i" |
| 42 | 39 | ... | ... |
pyext/gammalib/model.i
| ... | ... | @@ -27,6 +27,10 @@ |
| 27 | 27 | /* __ Include standard typemaps for vectors and strings __________________ */ |
| 28 | 28 | %include stl.i |
| 29 | 29 | |
| 30 | +/* __ Make sure that exceptions are catched ______________________________ */ | |
| 31 | +%import(module="gammalib.support") "GException.i"; | |
| 32 | +%import(module="gammalib.opt") "GOptimizerPars.i"; | |
| 33 | + | |
| 30 | 34 | /* __ Model handling _____________________________________________________ */ |
| 31 | 35 | %include "GModelPar.i" |
| 32 | 36 | %include "GModels.i" | ... | ... |