From 9dbdbaeb72a520a5608317d67f978184c9cbdc42 Mon Sep 17 00:00:00 2001 From: arghdos <arghdos@gmail.com> Date: Wed, 12 Jul 2017 20:07:36 -0400 Subject: [PATCH] resolve isbuiltin change after hash --- loopy/target/c/c_execution.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/loopy/target/c/c_execution.py b/loopy/target/c/c_execution.py index 501db3dfd..fd06eb0e8 100644 --- a/loopy/target/c/c_execution.py +++ b/loopy/target/c/c_execution.py @@ -52,10 +52,7 @@ class CExecutionWrapperGenerator(ExecutionWrapperGeneratorBase): super(CExecutionWrapperGenerator, self).__init__(system_args) def python_dtype_str(self, dtype): - # TODO: figure out why isbuiltin isn't working in test (requiring second - # line) - if dtype.isbuiltin or \ - np.dtype(str(dtype)).isbuiltin: + if np.dtype(str(dtype)).isbuiltin: return "_lpy_np."+dtype.name raise Exception('dtype: {} not recognized'.format(dtype)) -- GitLab