From 7f78160568f4b1ab1247e018459b4890ca8a2b8a Mon Sep 17 00:00:00 2001 From: sichao Date: Thu, 8 Aug 2024 13:45:06 -0400 Subject: [PATCH] debug numba vectorize siganiture --- dynamo/plot/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dynamo/plot/utils.py b/dynamo/plot/utils.py index 941ad41e8..c211299c2 100755 --- a/dynamo/plot/utils.py +++ b/dynamo/plot/utils.py @@ -316,17 +316,17 @@ def _to_hex(arr): """ -@numba.vectorize(["uint8(uint32)", "uint8(uint32)"]) +@numba.vectorize(["uint8(uint32)"]) def _red(x): return (x & 0xFF0000) >> 16 -@numba.vectorize(["uint8(uint32)", "uint8(uint32)"]) +@numba.vectorize(["uint8(uint32)"]) def _green(x): return (x & 0x00FF00) >> 8 -@numba.vectorize(["uint8(uint32)", "uint8(uint32)"]) +@numba.vectorize(["uint8(uint32)"]) def _blue(x): return x & 0x0000FF