Skip to content

Commit 8483d6b

Browse files
author
izaid
committed
Changes to get Python building again
1 parent 7d9a389 commit 8483d6b

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

dynd/cpp/types/base_fixed_dim_type.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ from ..type cimport type
44

55
from ...config cimport translate_exception
66

7-
cdef extern from 'dynd/types/base_fixed_dim_type.hpp' namespace 'dynd::ndt':
8-
cppclass base_fixed_dim_type:
7+
cdef extern from 'dynd/types/fixed_dim_kind_type.hpp' namespace 'dynd::ndt':
8+
cppclass fixed_dim_kind_type:
99
pass

dynd/ndt/type.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ from ..cpp.types.datashape_formatter cimport format_datashape as dynd_format_dat
2727
# from ..cpp.types.categorical_type cimport dynd_make_categorical_type
2828
from ..cpp.types.tuple_type cimport tuple_type
2929
from ..cpp.types.struct_type cimport struct_type
30-
from ..cpp.types.base_fixed_dim_type cimport base_fixed_dim_type
30+
from ..cpp.types.base_fixed_dim_type cimport fixed_dim_kind_type
3131
from ..cpp.types.var_dim_type cimport var_dim_type as _var_dim_type
3232
from ..cpp.types.callable_type cimport callable_type as _callable_type
3333
from ..cpp.types.string_type cimport string_type
@@ -575,7 +575,7 @@ def make_fixed_dim_kind(element_tp):
575575
ndt.type("Fixed * Fixed * Fixed * int32")
576576
"""
577577
cdef type result = type()
578-
result.v = make_type[base_fixed_dim_type](type(element_tp).v)
578+
result.v = make_type[fixed_dim_kind_type](type(element_tp).v)
579579
return result
580580

581581

dynd/src/assign.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,8 @@ PYDYND_API void assign_init()
8787

8888
PyDateTime_IMPORT;
8989

90-
for (const auto &pair : nd::callable::make_all<pydynd::nd::assign_from_pyobject_callable, types>()) {
91-
nd::assign.overload(type_for_id(pair.first[0]), {ndt::make_type<pyobject_type>()}, pair.second);
92-
}
93-
for (const auto &pair : nd::callable::make_all<pydynd::nd::assign_to_pyobject_callable, types>()) {
94-
nd::assign.overload(ndt::make_type<pyobject_type>(), {type_for_id(pair.first[0])}, pair.second);
95-
}
90+
nd::assign.overload<pydynd::nd::assign_from_pyobject_callable, types>();
91+
nd::assign.overload<pydynd::nd::assign_to_pyobject_callable, types>();
9692
}
9793

9894
#if DYND_NUMPY_INTEROP

dynd/src/types/pyobject_type.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
#include <dynd/type_registry.hpp>
99

1010
#include "types/pyobject_type.hpp"
11+
#include <dynd/types/any_kind_type.hpp>
1112

1213
using namespace dynd;
1314

1415
pyobject_type::pyobject_type(type_id_t id)
15-
: ndt::base_type(id, sizeof(PyObject *), alignof(PyObject *),
16+
: ndt::base_type(id, ndt::make_type<ndt::any_kind_type>(), sizeof(PyObject *), alignof(PyObject *),
1617
type_flag_none | type_flag_zeroinit, 0, 0, 0)
1718
{
1819
}

0 commit comments

Comments
 (0)