Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions dynd/cpp/array.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ from libcpp.map cimport map
from libcpp.string cimport string
from libcpp.vector cimport vector
from .type cimport type
from .func.callable cimport callable

cdef extern from 'dynd/array.hpp' namespace 'dynd::nd' nogil:

Expand All @@ -31,8 +30,6 @@ cdef extern from 'dynd/array.hpp' namespace 'dynd::nd' nogil:

array p(string)

map[string, callable] get_properties()

char *data() const
const char *cdata() const

Expand Down
7 changes: 3 additions & 4 deletions dynd/cpp/func/callable.pxd → dynd/cpp/callable.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ from libc.string cimport const_char
from libcpp.pair cimport pair
from libcpp cimport bool

from ...config cimport translate_exception
from ..array cimport array
from ..type cimport type
from ..config cimport translate_exception
from .array cimport array
from .type cimport type

ctypedef const_char* const_charptr

Expand All @@ -21,4 +21,3 @@ cdef extern from 'dynd/callable.hpp' namespace 'dynd::nd' nogil:

callable make_callable 'dynd::nd::callable::make'[T](...) except +translate_exception

callable apply[T](T) except +translate_exception
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ from libcpp.string cimport string

from .callable cimport callable

from ...config cimport translate_exception
from ..config cimport translate_exception

cdef extern from "dynd/callable_registry.hpp" namespace "dynd::nd" nogil:
cdef cppclass callable_registry:
Expand Down
2 changes: 1 addition & 1 deletion dynd/cpp/func/elwise.pxd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .callable cimport callable
from ..callable cimport callable
from ...config cimport translate_exception

cdef extern from 'dynd/func/elwise.hpp' namespace 'dynd::nd::functional' nogil:
Expand Down
2 changes: 1 addition & 1 deletion dynd/cpp/func/reduction.pxd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .callable cimport callable
from ..callable cimport callable
from ...config cimport translate_exception

cdef extern from 'dynd/func/reduction.hpp' namespace 'dynd::nd::functional' nogil:
Expand Down
5 changes: 5 additions & 0 deletions dynd/cpp/functional.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from ..config cimport translate_exception
from .callable cimport callable

cdef extern from "dynd/functional.hpp" namespace "dynd::nd::functional" nogil:
callable apply(...) except +translate_exception
2 changes: 0 additions & 2 deletions dynd/cpp/json_parser.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ from .array cimport array
cdef extern from 'dynd/json_parser.hpp' namespace 'dynd::ndt::json':
type discover(string) except +translate_exception

#cdef extern from 'dynd/parse.hpp' namespace 'dynd::nd::json':
# array parse(type, string) except +translate_exception
2 changes: 1 addition & 1 deletion dynd/cpp/type.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from .types.type_id cimport *

from ..config cimport translate_exception
from .array cimport array
from .func.callable cimport callable
from .callable cimport callable

cdef extern from 'dynd/type.hpp' namespace 'dynd::ndt' nogil:
cdef cppclass type:
Expand Down
2 changes: 1 addition & 1 deletion dynd/nd/array.pxd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from cpython.object cimport PyObject

from ..cpp.array cimport array as _array
from ..cpp.func.callable cimport callable as _callable
from ..cpp.callable cimport callable as _callable
from ..cpp.type cimport type as _type

cdef api class array(object)[object dynd_nd_array_pywrapper,
Expand Down
5 changes: 2 additions & 3 deletions dynd/nd/array.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ import numpy as _np
from ..cpp.array cimport (groupby as dynd_groupby, array_add, array_subtract,
array_multiply, array_divide, empty as cpp_empty,
dtyped_zeros, dtyped_ones, dtyped_empty)
from ..cpp.func.callable cimport callable as _callable
from ..cpp.func.callable_registry cimport callable_registry
from ..cpp.callable_registry cimport callable_registry
from ..cpp.type cimport get_builtin_type_dynamic_array_properties, make_type
from ..cpp.types.categorical_type cimport dynd_make_categorical_type
from ..cpp.types.datashape_formatter cimport format_datashape as dynd_format_datashape
from ..cpp.types.type_id cimport *
from ..cpp.view cimport view as _view
from ..cpp.types.pyobject_type cimport pyobject_id
from ..pyobject_type cimport pyobject_id

from ..config cimport translate_exception
from ..ndt.type cimport type as _py_type, dynd_ndt_type_to_cpp, as_cpp_type
Expand Down
2 changes: 1 addition & 1 deletion dynd/nd/callable.pxd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ..cpp.func.callable cimport callable as _callable
from ..cpp.callable cimport callable as _callable

cdef api class callable(object)[object dynd_nd_callable_pywrapper,
type dynd_nd_callable_pywrapper_type]:
Expand Down
2 changes: 1 addition & 1 deletion dynd/nd/callable.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ from libcpp.vector cimport vector
from libcpp.pair cimport pair

from ..cpp.array cimport array as _array
from ..cpp.func.callable cimport const_charptr
from ..cpp.callable cimport const_charptr

from ..config cimport translate_exception
from .array cimport as_cpp_array, dynd_nd_array_from_cpp
Expand Down
2 changes: 1 addition & 1 deletion dynd/nd/functional.pyx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from libc.stdint cimport intptr_t
from libcpp.vector cimport vector

from ..cpp.func.callable cimport callable as _callable
from ..cpp.callable cimport callable as _callable
from ..cpp.type cimport type as _type
from ..cpp.types.callable_type cimport make_callable
from ..cpp.func.elwise cimport elwise as _elwise
Expand Down
4 changes: 2 additions & 2 deletions dynd/nd/registry.pyx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# cython: c_string_type=str, c_string_encoding=ascii

from ..cpp.func.callable cimport callable
from ..cpp.func.callable_registry cimport callable_registry
from ..cpp.callable cimport callable
from ..cpp.callable_registry cimport callable_registry

from ..config cimport translate_exception
from .callable cimport dynd_nd_callable_from_cpp
Expand Down
4 changes: 2 additions & 2 deletions dynd/ndt/type.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ from ..cpp.type cimport make_type
from ..cpp.types.datashape_formatter cimport format_datashape as dynd_format_datashape
from ..cpp.types.categorical_type cimport dynd_make_categorical_type
from ..cpp.types.fixed_bytes_type cimport make_fixed_bytes as dynd_make_fixed_bytes_type
from ..cpp.types.fixed_dim_kind_type cimport dynd_make_fixed_dim_kind_type
from ..cpp.types.base_fixed_dim_type cimport dynd_make_fixed_dim_kind_type
from ..cpp.types.var_dim_type cimport dynd_make_var_dim_type
from ..cpp.types.tuple_type cimport make_tuple as _make_tuple
from ..cpp.types.struct_type cimport make_struct as _make_struct
from ..cpp.types.callable_type cimport make_callable
from ..cpp.types.string_type cimport string_type
from ..cpp.types.bytes_type cimport make as make_bytes_type
from ..cpp.func.callable cimport callable as _callable
from ..cpp.callable cimport callable as _callable
from ..cpp.type cimport make_type
from ..cpp.complex cimport complex as dynd_complex

Expand Down
2 changes: 0 additions & 2 deletions dynd/cpp/types/pyobject_type.pxd → dynd/pyobject_type.pxd
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from ..type cimport type

cdef extern from 'types/pyobject_type.hpp':
int pyobject_id

Expand Down