Removed spurious prints. Do better CosmoTool exception translation

This commit is contained in:
Guilhem Lavaux 2015-02-20 10:24:37 +01:00
parent 22aa572370
commit 1fe8f58105
5 changed files with 63 additions and 7 deletions

View file

@ -44,9 +44,11 @@ cdef extern from "safe_gadget.hpp":
SimuData **alloc_simudata(int num) nogil
void del_simudata(SimuData **d) nogil
cdef extern from "loadRamses.hpp" namespace "CosmoTool":
SimuData *loadRamsesSimu(const char *basename, int id, int cpuid, bool dp, int flags) except +
cdef extern from "cppHelper.hpp":
int customCosmotoolHandler() nogil
cdef extern from "loadRamses.hpp" namespace "CosmoTool":
SimuData *loadRamsesSimu(const char *basename, int id, int cpuid, bool dp, int flags) except +customCosmotoolHandler
class PySimulationBase(object):
"""
@ -226,7 +228,6 @@ cdef class Simulation:
def __dealloc__(Simulation self):
if self.data != <SimuData *>0:
print("Clearing simulation data")
del self.data