Debian Codegraph @

Tests/Py/Functional/PyFuTestInfrastructure.py

raw symbols SCIP
1 """
2 Collection of utils for testing
3 """
4
5 import bornagain as ba
6 from bornagain import deg #, ba_plot as bp
7
8
9 def get_simulation_MiniGISAS(sample, n=25):
10 beam = ba.Beam(1, 0.1, 0.2 * deg)
11 detector = ba.SphericalDetector(n, -2*deg, 2*deg, n, 0, 2*deg)
12 return ba.ScatteringSimulation(beam, sample, detector)
13
14 def run_simulation_MiniGISAS(sample):
15 return get_simulation_MiniGISAS(sample, 11).simulate()