Skip to content

Commit

Permalink
Merge pull request #776 from borondics/perkin_elmer_tests_improved
Browse files Browse the repository at this point in the history
Added tests for map coordinates.
  • Loading branch information
markotoplak authored Nov 27, 2024
2 parents 05c00ee + 9f96cfa commit 76a4403
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions orangecontrib/spectroscopy/tests/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ def test_map_reader(self):
self.assertEqual(min(getx(d)), 750.0)
self.assertEqual(max(getx(d)), 4000.0)

map_x = np.tile([17480, 17530, 17580, 17630], 4)
map_y = np.repeat([2749, 2799, 2849, 2899], 4)
np.testing.assert_almost_equal(d.metas[:, 0], map_x, decimal=5)
np.testing.assert_almost_equal(d.metas[:, 1], map_y, decimal=5)


class TestAgilentReader(unittest.TestCase):

Expand Down

0 comments on commit 76a4403

Please sign in to comment.