bindings/python/dionysus.cpp
author Dmitriy Morozov <dmitriy@mrzv.org>
Fri, 01 May 2009 15:36:25 -0700
branchdev
changeset 124 af54138b98fd
parent 112 f209958b5c17
child 126 3c3e77ac43d2
permissions -rw-r--r--
Added tools/extract-diagram + minor fixes

#include <utilities/log.h>
#include <boost/python.hpp>

namespace bp = boost::python;

void export_simplex();
void export_filtration();
void export_static_persistence();
void export_chain();
void export_zigzag_persistence();

#ifdef LOGGING
void            enable_log(std::string s)
{
    stdoutLog.subscribeTo(RLOG_CHANNEL(s.c_str()));
}
#endif

BOOST_PYTHON_MODULE(_dionysus)
{
    export_simplex();
    export_filtration();
    export_static_persistence();
    export_chain();

    export_zigzag_persistence();

#ifdef LOGGING
    bp::def("enable_log",           &enable_log);
#endif
};