From 22fc4cb9aefe565c5b8a4678f6f83108e2f9afa1 Mon Sep 17 00:00:00 2001 From: "borondics.accounts@gmail.com" Date: Wed, 20 Nov 2024 15:49:18 +0100 Subject: [PATCH] Added tests for map coordinates. --- orangecontrib/spectroscopy/tests/test_readers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/orangecontrib/spectroscopy/tests/test_readers.py b/orangecontrib/spectroscopy/tests/test_readers.py index 8b39407b9..1cf83af09 100644 --- a/orangecontrib/spectroscopy/tests/test_readers.py +++ b/orangecontrib/spectroscopy/tests/test_readers.py @@ -238,6 +238,12 @@ def test_map_reader(self): self.assertEqual(min(getx(d)), 750.0) self.assertEqual(max(getx(d)), 4000.0) + def test_map_reader_coordinates(self): + d = Orange.data.Table("perkinelmer/4x4_pixel_PE_image.fsm") + self.assertEqual(d.metas[1][0], 17530.000000993412) + self.assertEqual(d.metas[1][1], 2749.0000029802322) + self.assertEqual(d.metas[2][0], 17579.999999006588) + self.assertEqual(d.metas[2][1], 2749.0000029802322) class TestAgilentReader(unittest.TestCase):