Skip to content
Snippets Groups Projects
Commit 2a3f930b authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

repair 1

parent e632e6f7
No related branches found
No related tags found
1 merge request!1312rm IRangedDistribution with children, and ScanResolution
......@@ -71,14 +71,11 @@ def get_simulation(sample, q_axis, parameters, polarizer_dir,
from given parameters
"""
q_axis = q_axis + parameters["q_offset"]
scan = ba.QzScan(q_axis)
# unused, why was this define: dq = parameters["q_res"]*q_axis
n_sig = 4.0
n_samples = 25
distr = ba.DistributionGaussian(0., 1., 25, 4.)
distr = ba.RangedDistributionGaussian(n_samples, n_sig)
scan = ba.QzScan(q_axis)
scan.setAbsoluteQResolution(distr, parameters["q_res"])
# TODO CHECK not parameters["q_res"]*q_axis ??
scan.setPolarization(polarizer_dir)
scan.setAnalyzer(analyzer_dir, 1, 0.5)
......
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