From 629aacec090ae7d8c9f245c27aa39d254453d809 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 17 Nov 2015 00:51:22 +0300 Subject: [PATCH] compiler.iodelay: add forgotten Conv.__eq__. --- artiq/compiler/iodelay.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/artiq/compiler/iodelay.py b/artiq/compiler/iodelay.py index 165ce3950..71e137df9 100644 --- a/artiq/compiler/iodelay.py +++ b/artiq/compiler/iodelay.py @@ -85,6 +85,11 @@ class Conv(Expr): assert isinstance(ref_period, float) self.operand, self.ref_period = operand, ref_period + def __eq__(lhs, rhs): + return rhs.__class__ == lhs.__class__ and \ + lhs.ref_period == rhs.ref_period and \ + lhs.operand == rhs.operand + def free_vars(self): return self.operand.free_vars()