From 029b5eec511e60ea28089d9870f303a1b069620b Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Thu, 3 Dec 2020 12:00:21 +0100 Subject: [PATCH] Fix wavelength range print out --- satpy/dataset/dataid.py | 2 +- satpy/tests/test_dataset.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/satpy/dataset/dataid.py b/satpy/dataset/dataid.py index c99183c39b..c64bb52dd0 100644 --- a/satpy/dataset/dataid.py +++ b/satpy/dataset/dataid.py @@ -127,7 +127,7 @@ def __hash__(self): def __str__(self): """Format for print out.""" - return "{0.central} {0.unit} ({0.min}-{0.max} {0.unit})".format(self) + return "{0.central} {0.unit} ({0.min}-{0.max} {0.unit})".format(self) def __contains__(self, other): """Check if this range contains *other*.""" diff --git a/satpy/tests/test_dataset.py b/satpy/tests/test_dataset.py index bb2fb5a79c..d7aad1be84 100644 --- a/satpy/tests/test_dataset.py +++ b/satpy/tests/test_dataset.py @@ -536,5 +536,5 @@ def test_wavelength_range(): wr2 in wr # Check __str__ - assert str(wr) == "2 µm (1-3 µm)" - assert str(wr2) == "2 nm (1-3 nm)" + assert str(wr) == "2 µm (1-3 µm)" + assert str(wr2) == "2 nm (1-3 nm)"