Skip to content

Commit

Permalink
Added tests for map coordinates.
Browse files Browse the repository at this point in the history
  • Loading branch information
borondics committed Nov 20, 2024
1 parent 75ee038 commit 22fc4cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions orangecontrib/spectroscopy/tests/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit 22fc4cb

Please sign in to comment.