diff options
Diffstat (limited to 'src/ee')
-rw-r--r-- | src/ee/__init__.py | 4 | ||||
-rw-r--r-- | src/ee/formatting/__init__.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ee/__init__.py b/src/ee/__init__.py index 06c5aab..ea887b1 100644 --- a/src/ee/__init__.py +++ b/src/ee/__init__.py @@ -36,7 +36,9 @@ power_type = EeValType("W", []) @total_ordering class EeVal(object): units = ['F', - 'Ohm', '\u2126', # Ohm symbol + 'Ohm', + '\u03a9', # Ohm, the greek (upper case) letter + '\u2126', # Ohm symbol, deprecated from unicode 'H'] exponents = { 'f': -15, 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)) |