Closed PerretB closed 5 years ago
a1 = np.zeros(20, dtype=np.bool) a2 = np.zeros(20) hg.common_type(a1, a2) --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-23-2539c0b2103a> in <module>() 2 a2 = np.zeros(20) 3 ----> 4 hg.common_type(a1, a2) ~/Higra/cmake-build-debug/higra/hg_utils.py in common_type(safety_level, *arrays) 470 ctype = str(arrays[0].dtype) 471 for i in range(1, len(arrays)): --> 472 ctype = __minimum_type_order[ctype][str(arrays[i].dtype)] 473 474 return np.dtype(ctype) KeyError: 'bool'