Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90376785
py_akantu.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 1, 02:28
Size
1 KB
Mime Type
text/x-c
Expires
Sun, Nov 3, 02:28 (2 d)
Engine
blob
Format
Raw Data
Handle
22036669
Attached To
rAKA akantu
py_akantu.cc
View Options
/* -------------------------------------------------------------------------- */
#include "py_aka_common.hh"
/* -------------------------------------------------------------------------- */
#include <aka_error.hh>
/* -------------------------------------------------------------------------- */
#include <pybind11/pybind11.h>
/* -------------------------------------------------------------------------- */
namespace py = pybind11;
PYBIND11_MODULE(py11_akantu, mod) {
mod.doc() = "Akantu python interface";
static py::exception<akantu::debug::Exception> akantu_exception(mod,
"Exception");
py::register_exception_translator([](std::exception_ptr p) {
try {
if (p)
std::rethrow_exception(p);
} catch (akantu::debug::Exception & e) {
if (akantu::debug::debugger.printBacktrace())
akantu::debug::printBacktrace(15);
akantu_exception(e.info().c_str());
}
});
akantu::register_all(mod);
} // Module akantu
Event Timeline
Log In to Comment