Commit a47ead2c authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Updating the interface, now a lot more complete.

Need to separate the use of loading a plugin and loading a file.
parent 5da176c7
......@@ -107,7 +107,10 @@ function* get_function(const std::string& filename) {
// Exporting the ALTA module
/* .def(" __setitem__", &my_vec::operator[])*/;
......@@ -126,7 +129,8 @@ BOOST_PYTHON_MODULE(alta)
bp::register_ptr_to_python< ptr<data> >();
// Fitter interface
bp::class_<Fitter, ptr<Fitter>, boost::noncopyable>("fitter");
bp::class_<Fitter, ptr<Fitter>, boost::noncopyable>("fitter")
.def("fit_data", bp::pure_virtual(&fitter::fit_data));
bp::def("get_fitter", plugins_manager::get_fitter);
bp::register_ptr_to_python< ptr<fitter> >();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment