bindings/python/dionysus.cpp
author Christos Mantoulidis <cmad@stanford.edu>
Tue, 28 Jul 2009 10:58:53 -0700
branchdev
changeset 153 7731c42892de
parent 131 d9e050258358
child 144 baa53970eb88
permissions -rw-r--r--
Modified WeightedRips::generate() to incorporate the simplex-appearance-value computation (before it would have to be done explicitly by the user by a for-loop after the call to generate())

#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();

void export_rips();
void export_alphashapes2d();
void export_alphashapes3d();

#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();

    export_rips();
    export_alphashapes2d();
    export_alphashapes3d();

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