Skip to content

Commit 7221091

Browse files
committed
Merge pull request #704 from izaid/id
Updates to match libdynd
2 parents 5816327 + eec0560 commit 7221091

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

dynd/include/type_functions.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include <dynd/types/struct_type.hpp>
2121
#include <dynd/types/type_type.hpp>
2222

23-
#include "utility_functions.hpp"
2423
#include "type_conversions.hpp"
24+
#include "utility_functions.hpp"
2525
#include "visibility.hpp"
2626

2727
// Python's datetime C API
@@ -166,7 +166,7 @@ inline dynd::ndt::type dynd_make_fixed_dim_type(PyObject *shape, const dynd::ndt
166166
{
167167
std::vector<intptr_t> shape_vec;
168168
pyobject_as_vector_intp(shape, shape_vec, true);
169-
return dynd::ndt::make_fixed_dim(shape_vec.size(), &shape_vec[0], element_tp);
169+
return dynd::ndt::make_type(shape_vec.size(), &shape_vec[0], element_tp);
170170
}
171171

172172
inline void init_type_functions()

dynd/src/numpy_type_interop.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,13 @@ dynd::ndt::type pydynd::array_from_numpy_array2(PyArrayObject *obj)
368368
PyArray_Descr *dtype = PyArray_DESCR(obj);
369369

370370
if (PyDataType_FLAGCHK(dtype, NPY_ITEM_HASOBJECT)) {
371-
return dynd::ndt::make_fixed_dim(PyArray_NDIM(obj), PyArray_SHAPE(obj),
372-
pydynd::_type_from_numpy_dtype(dtype).get_canonical_type());
371+
return dynd::ndt::make_type(PyArray_NDIM(obj), PyArray_SHAPE(obj),
372+
pydynd::_type_from_numpy_dtype(dtype).get_canonical_type());
373373
}
374374
else {
375375
// Get the dtype of the array
376376
dynd::ndt::type d = pydynd::_type_from_numpy_dtype(PyArray_DESCR(obj), get_alignment_of(obj));
377-
return dynd::ndt::make_fixed_dim(PyArray_NDIM(obj), PyArray_DIMS(obj), d);
377+
return dynd::ndt::make_type(PyArray_NDIM(obj), PyArray_DIMS(obj), d);
378378
}
379379
}
380380

0 commit comments

Comments
 (0)