From a0cea3a0118978e34c2fb631b9cf9b2543e678d8 Mon Sep 17 00:00:00 2001 From: Leon Riesebos Date: Tue, 20 Apr 2021 17:40:12 -0400 Subject: [PATCH] added __iter__ and __len__ to ScanObject base class Signed-off-by: Leon Riesebos --- artiq/language/scan.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/artiq/language/scan.py b/artiq/language/scan.py index c174f0344..0454ef362 100644 --- a/artiq/language/scan.py +++ b/artiq/language/scan.py @@ -32,6 +32,12 @@ __all__ = ["ScanObject", class ScanObject: + def __iter__(self): + raise NotImplementedError + + def __len__(self): + raise NotImplementedError + def describe(self): raise NotImplementedError