Skip to content

Commit ad0bd6b

Browse files
committed
fix Numeric not defined error in get_array w/o numpy
1 parent a2bdca7 commit ad0bd6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matplotlibcpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ template <> struct select_npy_type<uint64_t> {
365365
template <typename Vector> PyObject *get_array(const Vector &v) {
366366
detail::_interpreter::get(); // interpreter needs to be initialized for the
367367
// numpy commands to work
368-
NPY_TYPES type = select_npy_type<Numeric>::type;
368+
NPY_TYPES type = select_npy_type<typename Vector::value_type>::type;
369369
if (type == NPY_NOTYPE) {
370370
std::vector<double> vd(v.size());
371371
npy_intp vsize = v.size();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy