Remove redundant NUMPY macro

This commit is contained in:
Shahram Najm 2016-07-21 18:13:01 +01:00
parent f53e92a346
commit 608bce2447
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
swig : gribapi_swig.i
swig -python -module gribapi_swig -DNUMPY -o swig_wrap_numpy.c gribapi_swig.i
swig -python -module gribapi_swig -o swig_wrap_numpy.c gribapi_swig.i
cp gribapi_swig.py swig_wrap_numpy.py
# swig -python -module gribapi_swig -o swig_wrap_array.c gribapi_swig.i

View File

@ -140,6 +140,7 @@ int grib_c_set_key_vals(int* gid, char* keyvals);
int grib_c_is_missing(int* gid, char* key, int* OUTPUT);
int grib_c_is_defined(int* gid, char* key, int* OUTPUT);
// Numpy Support
%apply (double* IN_ARRAY1, int DIM1) {(double* dpin_val, int dpin_val_dim1)};
%apply (long* IN_ARRAY1, int DIM1) {(long* lpin_val, int lpin_val_dim1)};
%apply (int* IN_ARRAY1, int DIM1) {(int* ipin_index, int ipin_index_dim1)};