Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Mar 1, 2024
1 parent 3ec1179 commit be591f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_layered_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_psi_phi_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be591f3

Please sign in to comment.