/
sim_phil.py
50 lines (47 loc) · 1.66 KB
/
sim_phil.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from __future__ import absolute_import, division, print_function
"""
Load params for a simulation.
Iris Young, idyoung@lbl.gov
"""
import libtbx.phil as phil
sim_view_phil_scope = phil.parse(
"""
detector_distance = 100
.type = float
.expert_level=1
.help = "Distance in mm from sample to detector."
mosaic_domains_bragg = 100
.type = int
.expert_level=1
.help = "Number of rotation matrices to model in each simulation"
"for Bragg peaks."
mosaic_domains_diffuse = 10
.type = int
.expert_level=1
.help = "Number of domains to model for diffuse scattering only."
oversampling = 1
.type = int
.expert_level=1
.help = "Oversampling of the simulated diffraction in case of e.g."
"very large domain size and wide mosaic angles."
oscillation_n_steps = 10
.type = int
.expert_level=1
.help = "Number of steps to sample in a single oscillation."
"(This number of simulations will be summed to produce a"
"simulated rotation image.)"
spectrum_shape = SASE (XFEL)
.type = str
.expert_level=1
.help = "Enable overriding default spectrum shape to monochromatic for"
"speed, critical when not using GPU, recommended when using"
"diffuse scattering."
context = *kokkos cuda cpu
.type = choice
.expert_level=3
.help = "Backend for parallel execution."
high_visibility = False
.type = bool
.expert_level=0
.help = "Increase font size and reduce panel width."
""", process_includes=True)