From be591f374e979ff65ddbe51fe7e880db40977d42 Mon Sep 17 00:00:00 2001 From: Jeremy Kubica <104161096+jeremykubica@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:39:48 -0500 Subject: [PATCH] Fix linting errors --- tests/test_layered_image.py | 2 +- tests/test_psi_phi_array.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_layered_image.py b/tests/test_layered_image.py index 0fbae27e1..d40a04129 100644 --- a/tests/test_layered_image.py +++ b/tests/test_layered_image.py @@ -337,7 +337,7 @@ def test_psi_and_phi_image(self): self.assertAlmostEqual(psi.get_pixel(y, x), x / (y + 1), delta=1e-5) else: self.assertEqual(psi.get_pixel(y, x), KB_NO_DATA) - + phi_has_data = y != 3 or x > 2 self.assertEqual(phi.pixel_has_data(y, x), phi_has_data) if phi_has_data: diff --git a/tests/test_psi_phi_array.py b/tests/test_psi_phi_array.py index 93b395fb3..5fc1542c6 100644 --- a/tests/test_psi_phi_array.py +++ b/tests/test_psi_phi_array.py @@ -108,7 +108,7 @@ def encode_uint_scalar(self): # NAN always encodes to 0.0. self.assertAlmostEqual(encode_uint_scalar(math.nan, 0.0, 10.0, 0.1), 0.0) self.assertAlmostEqual(encode_uint_scalar(np.nan, 0.0, 10.0, 0.1), 0.0) - + # Test clipping. self.assertAlmostEqual(encode_uint_scalar(11.0, 0.0, 10.0, 0.1), 100.0) self.assertAlmostEqual(encode_uint_scalar(-100.0, 0.0, 10.0, 0.1), 1.0)