Skip to content

Commit

Permalink
Increase the sensitivity of analysis system test
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiMacielPereira committed Sep 10, 2024
1 parent 65f160a commit e9946e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/system/analysis/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ def test_nit(self):
nptest.assert_almost_equal(self.orinit, self.optnit, decimal=-2)

def test_intensities(self):
nptest.assert_almost_equal(self.oriintensities, self.optintensities, decimal=2)
nptest.assert_almost_equal(self.oriintensities, self.optintensities, decimal=4)

def test_widths(self):
nptest.assert_almost_equal(self.oriwidths, self.optwidths, decimal=2)
nptest.assert_almost_equal(self.oriwidths, self.optwidths, decimal=4)

def test_centers(self):
nptest.assert_almost_equal(self.oricenters, self.optcenters, decimal=1)
nptest.assert_almost_equal(self.oricenters, self.optcenters, decimal=2)


class TestNcp(unittest.TestCase):
Expand All @@ -124,7 +124,7 @@ def test_ncp(self):
correctNansOri = np.where(
(self.orincp == 0) & np.isnan(self.optncp), np.nan, self.orincp
)
nptest.assert_almost_equal(correctNansOri, self.optncp, decimal=4)
nptest.assert_almost_equal(correctNansOri, self.optncp, decimal=5)


class TestMeanWidths(unittest.TestCase):
Expand All @@ -138,7 +138,7 @@ def setUp(self):
self.optmeanwidths = self.currentResults.all_mean_widths

def test_widths(self):
nptest.assert_almost_equal(self.orimeanwidths, self.optmeanwidths, decimal=5)
nptest.assert_almost_equal(self.orimeanwidths, self.optmeanwidths, decimal=6)


class TestMeanIntensities(unittest.TestCase):
Expand Down

0 comments on commit e9946e9

Please sign in to comment.