[draft] complex cast to real val (test failing currently)
@@ -567,6 +567,14 @@ cdef tuple _decide_params_type_core(
for p in in_params])
out_types = tuple([type_dict[p.ctype] if p.dtype is None else p.dtype
for p in out_params])
+
+ for a in in_types:
+ if a == 'c':
+ warnings.warn(
+ 'Casting complex values to real discards the imaginary part',
+ numpy.ComplexWarning)
+ a = a.real
+
type_map = _TypeMap(tuple(sorted(type_dict.items())))
return in_types, out_types, type_map
