File: PyFuTestInfrastructure.py

package info (click to toggle)
bornagain 23.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 103,936 kB
  • sloc: cpp: 423,131; python: 40,997; javascript: 11,167; awk: 630; sh: 318; ruby: 173; xml: 130; makefile: 51; ansic: 24
file content (15 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
Collection of utils for testing
"""

import bornagain as ba
from bornagain import deg #, ba_plot as bp


def get_simulation_MiniGISAS(sample, n=25):
    beam = ba.Beam(1, 0.1, 0.2 * deg)
    detector = ba.SphericalDetector(n, -2*deg, 2*deg, n, 0, 2*deg)
    return ba.ScatteringSimulation(beam, sample, detector)

def run_simulation_MiniGISAS(sample):
    return get_simulation_MiniGISAS(sample, 11).simulate()