diff pytave.cc @ 101:0c19ed1ce349

Remove Numeric array support. Use numpy exclusively.
author David Grundberg <individ@acc.umu.se>
date Mon, 09 Apr 2012 21:22:32 +0200
parents ff70627aa203
children 896fdc369789
line wrap: on
line diff
--- a/pytave.cc	Mon Apr 09 20:05:48 2012 +0200
+++ b/pytave.cc	Mon Apr 09 21:22:32 2012 +0200
@@ -107,14 +107,9 @@
       // This is actually a macro that becomes a block expression. If an error
       // occurs, e.g. Numeric Array not installed, an exception is set.
       import_array()
-#ifdef HAVE_NUMPY
+
       // Let boost use numpy
       numeric::array::set_module_and_type ("numpy", "ndarray");
-#endif
-   }
-
-   string get_module_name () {
-      return numeric::array::get_module_name ();
    }
 
    boost::python::tuple get_exceptions() {
@@ -394,7 +389,6 @@
    using namespace boost::python;
 
    def("init", pytave::init);
-   def("get_module_name", pytave::get_module_name);
    def("feval", pytave::func_eval);
    def("eval", pytave::str_eval);
    def("getvar", pytave::getvar);