From 94e8537430ab7496e4b8e697581d65b06cf8b979 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 27 May 2019 13:52:20 +0200 Subject: EeVal: Supporting omega symbol in addition to ohm symbol (which are usually graphically equal). --- src/ee/formatting/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ee/formatting') diff --git a/src/ee/formatting/__init__.py b/src/ee/formatting/__init__.py index d32f7f9..073d533 100644 --- a/src/ee/formatting/__init__.py +++ b/src/ee/formatting/__init__.py @@ -14,7 +14,7 @@ class ESeries(object): def __init__(self, series): self.series = series - def closest(self, value, round_direction = ROUND_CLOSEST): + def closest(self, value, round_direction=ROUND_CLOSEST): if round_direction != ESeries.ROUND_CLOSEST: raise NotImplementedError("Only closest rounding is implemented for now") e = math.floor(math.log10(value)) -- cgit v1.2.3