From 35ba8ab32a02876bd65e0c613dbe4f1685b1e81e Mon Sep 17 00:00:00 2001 From: mcDandy Date: Tue, 13 Oct 2026 08:44:16 +0200 Subject: [PATCH] rename functions to work. Thats on me for not testing. --- more_math/Parser/UnifiedMathVisitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/more_math/Parser/UnifiedMathVisitor.py b/more_math/Parser/UnifiedMathVisitor.py index f6ca652..cb368a7 100644 --- a/more_math/Parser/UnifiedMathVisitor.py +++ b/more_math/Parser/UnifiedMathVisitor.py @@ -4820,11 +4820,11 @@ class UnifiedMathVisitor(MathExprVisitor): if self._is_tensor(val): return torch.stack([r.to(torch.float)/256, g.to(torch.float)/256, b.to(torch.float)/256], dim=-1).contiguous() return [r/256, g/256, b/256] - def visitInt_to_rgb(self,ctx): + def visitInt_to_rgbFunc(self, ctx): val = (yield ctx.expr()) return self.i2rgb(val) - def visitRgb_to_int(self,ctx): + def visitRgb_to_intFunc(self, ctx): def clamp255_scaled(x): return max(0, min(255, int(float(x) * 256)))