Skip to content
Snippets Groups Projects
Commit 1621c1dc authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

increase pixels and MC integration points FindPeaks

parent 4451ac6f
No related branches found
No related tags found
1 merge request!2726Resolve huge numeric discrepancies on different OS and architectures
...@@ -183,7 +183,7 @@ test_example(scatter2d/CylindersAndPrisms 2e-10) ...@@ -183,7 +183,7 @@ test_example(scatter2d/CylindersAndPrisms 2e-10)
test_example(scatter2d/CylindersInAverageLayer 2e-10) test_example(scatter2d/CylindersInAverageLayer 2e-10)
test_example(scatter2d/CylindersInBA 2e-10) test_example(scatter2d/CylindersInBA 2e-10)
test_example(scatter2d/DodecahedraSAS 2e-10) test_example(scatter2d/DodecahedraSAS 2e-10)
run_example(scatter2d/FindPeaks) test_example(scatter2d/FindPeaks 0.08) # MC integration ==> high tolerance is ok
test_example(scatter2d/HalfSpheresInAverageTopLayer 2e-10) test_example(scatter2d/HalfSpheresInAverageTopLayer 2e-10)
test_example(scatter2d/HexagonalLatticesWithBasis 2e-10) test_example(scatter2d/HexagonalLatticesWithBasis 2e-10)
test_example(scatter2d/Interference1DLattice 0.1) # MC integration ==> high tolerance is ok test_example(scatter2d/Interference1DLattice 0.1) # MC integration ==> high tolerance is ok
......
This diff is collapsed.
...@@ -54,10 +54,10 @@ def get_sample(lattice_rotation_angle=0*deg): ...@@ -54,10 +54,10 @@ def get_sample(lattice_rotation_angle=0*deg):
def get_simulation(sample): def get_simulation(sample):
beam = ba.Beam(1e8, 1.34*angstrom, 0.4*deg) beam = ba.Beam(1e8, 1.34*angstrom, 0.4*deg)
n = 11 n = 41
detector = ba.SphericalDetector(n, -0.5*deg, 0.5*deg, n, 0, 0.5*deg) detector = ba.SphericalDetector(n, -0.5*deg, 0.5*deg, n, 0, 0.5*deg)
simulation = ba.ScatteringSimulation(beam, sample, detector) simulation = ba.ScatteringSimulation(beam, sample, detector)
simulation.options().setMonteCarloIntegration(True, 100) simulation.options().setMonteCarloIntegration(True, 1000)
return simulation return simulation
......
...@@ -54,10 +54,10 @@ def get_sample(lattice_rotation_angle=0*deg): ...@@ -54,10 +54,10 @@ def get_sample(lattice_rotation_angle=0*deg):
def get_simulation(sample): def get_simulation(sample):
beam = ba.Beam(1e8, 1.34*angstrom, 0.4*deg) beam = ba.Beam(1e8, 1.34*angstrom, 0.4*deg)
n = <%= test_mode ? 11 : 401 %> n = <%= test_mode ? 41 : 401 %>
detector = ba.SphericalDetector(n, -0.5*deg, 0.5*deg, n, 0, 0.5*deg) detector = ba.SphericalDetector(n, -0.5*deg, 0.5*deg, n, 0, 0.5*deg)
simulation = ba.ScatteringSimulation(beam, sample, detector) simulation = ba.ScatteringSimulation(beam, sample, detector)
simulation.options().setMonteCarloIntegration(True, 100) simulation.options().setMonteCarloIntegration(True, <%= test_mode ? 1000 : 100 %>)
return simulation return simulation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment