Skip to content

Commit

Permalink
Assert individual I/sig values in edge tests
Browse files Browse the repository at this point in the history
Help see why the test is failing!
  • Loading branch information
RichardWaiteSTFC committed Apr 9, 2024
1 parent 1aaecf6 commit 2888cc4
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -76,13 +76,15 @@ def test_exec_IntegrateIfOnEdge_True(self):
out = IntegratePeaks1DProfile(
InputWorkspace=self.ws, PeaksWorkspace=self.peaks_edge, OutputWorkspace="peaks_int_1", **self.profile_kwargs
)
self.assertTrue(np.allclose(out.column("Intens/SigInt"), 2 * [19.60], atol=1e-2))
self.assertAlmostEqual(out.column("Intens/SigInt")[0], 19.59, delta=1e-1)
self.assertAlmostEqual(out.column("Intens/SigInt")[1], 19.59, delta=1e-1)

def test_exec_IntegrateIfOnEdge_False(self):
kwargs = self.profile_kwargs.copy()
kwargs["IntegrateIfOnEdge"] = False
out = IntegratePeaks1DProfile(InputWorkspace=self.ws, PeaksWorkspace=self.peaks_edge, OutputWorkspace="peaks_int_2", **kwargs)
self.assertTrue(np.allclose(out.column("Intens/SigInt"), [19.60, 0.0], atol=1e-2))
self.assertAlmostEqual(out.column("Intens/SigInt")[0], 19.59, delta=1e-1)
self.assertAlmostEqual(out.column("Intens/SigInt")[1], 0.0, delta=1e-2)

def test_exec_poisson_cost_func(self):
kwargs = self.profile_kwargs.copy()
Expand Down

0 comments on commit 2888cc4

Please sign in to comment.