From 96389cf7426e11bdfde74681051b4dcc9cb9cd0f Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Fri, 9 Feb 2018 15:42:00 +0100 Subject: [PATCH] Closedown --- script/keithley.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/keithley.py b/script/keithley.py index ec4484dd..fbf82b26 100644 --- a/script/keithley.py +++ b/script/keithley.py @@ -138,7 +138,7 @@ class Keithley(object): try: v = int(-math.log10(value / 2)) - 1 v = max(v, 0) - v = min(v, len(RANGE_STATES)-1) + v = min(v, len(self.RANGE_STATES)-1) except ValueError: v = 0 elif isinstance(value, str):