Skip to content

Commit

Permalink
fixed compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
gsomix committed Jul 24, 2012
1 parent e37e6fe commit 8879634
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Expand Up @@ -78,6 +78,8 @@ def features_dense_real_modular(in_data=data):
ret_real=array(f_real)
print ret_real

return f_real[:,0]

if __name__=='__main__':
print('dense_real')
features_dense_real_modular(*parameter_list[0])
4 changes: 4 additions & 0 deletions src/interfaces/modular/Features.i
Expand Up @@ -31,6 +31,10 @@
}
#endif

#ifndef SWIGPYTHON
#define PYPROTO_DENSEFEATURES(class_name, type_name, format_str, typecode)
#endif

/* Remove C Prefix */
%rename(Alphabet) CAlphabet;
%rename(Features) CFeatures;
Expand Down
8 changes: 0 additions & 8 deletions src/interfaces/python_modular/python_protocols.i
Expand Up @@ -19,8 +19,6 @@
/* Helper functions */
%wrapper
%{
#include <Python.h>

void get_slice_in_bounds(Py_ssize_t* ilow, Py_ssize_t* ihigh, Py_ssize_t max_idx)
{
if (*ilow<0)
Expand Down Expand Up @@ -621,10 +619,4 @@ SwigPyBuiltin__shogun__CDenseFeaturesT_ ## type_name ## _t_type.ht_type.tp_flags
%feature("python:mp_ass_subscript") CDenseFeatures< type_name > #class_name "_setsubscript"

%enddef /* PYPROTO_DENSEFEATURES */

#else

%define PYPROTO_DENSEFEATURES(class_name, type_name, format_str, typecode)
%enddef /* PYPROTO_DENSEFEATURES */

#endif /* SWIG_PYTHON */

0 comments on commit 8879634

Please sign in to comment.