mirror of https://github.com/silx-kit/pyFAI.git
Consistency between integrators
This commit is contained in:
parent
7540b6a131
commit
4bf1618a41
|
@ -1639,7 +1639,7 @@ class AzimuthalIntegrator(Geometry):
|
|||
result = Integrate1dResult(intpl.position,
|
||||
intpl.intensity,
|
||||
intpl.error)
|
||||
result._set_compute_engine(integr.__class__.__name__)
|
||||
result._set_compute_engine(integr.__module__ + "." + integr.__class__.__name__)
|
||||
result._set_unit(integr.unit)
|
||||
result._set_sum_signal(intpl.signal)
|
||||
result._set_sum_normalization(intpl.normalization)
|
||||
|
|
|
@ -552,7 +552,7 @@ class TestIntergrationNextGeneration(unittest.TestCase):
|
|||
reason = "Skipping TestIntergrationNextGeneration.test_histo as OpenCL method not available"
|
||||
self.skipTest(reason)
|
||||
opencl = ai._integrate1d_ng(data, 100, method=method, error_model="poisson")
|
||||
self.assertEqual(opencl.compute_engine, "OCL_Histogram1d")
|
||||
self.assertEqual(opencl.compute_engine, "pyFAI.opencl.azim_hist.OCL_Histogram1d")
|
||||
self.assertEqual(str(opencl.unit), "q_nm^-1")
|
||||
|
||||
self.assertTrue(numpy.allclose(opencl.radial, python.radial), "opencl position are the same")
|
||||
|
|
Loading…
Reference in New Issue