mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-29 07:32:23 +00:00
fixing pysuite test
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <boost/python/raw_function.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#ifdef USE_NUMPY
|
||||
#ifdef HAVE_NUMPY
|
||||
# define NO_IMPORT_ARRAY
|
||||
# define PY_ARRAY_UNIQUE_SYMBOL boost_histogram_ARRAY_API
|
||||
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
||||
@@ -59,7 +59,7 @@ histogram_fill(python::tuple args, python::dict kwargs) {
|
||||
if (kwargs)
|
||||
ow = kwargs["w"];
|
||||
|
||||
#ifdef USE_NUMPY
|
||||
#ifdef HAVE_NUMPY
|
||||
if (nargs == 2) {
|
||||
object o = args[1];
|
||||
if (PySequence_Check(o.ptr())) {
|
||||
|
||||
Reference in New Issue
Block a user