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

[os0a] correct webdoc, ... ()

Merging branch 'os0a'  into 'main'.

See merge request !1749
parents ef142440 78dbb8a3
No related branches found
No related tags found
1 merge request!1749correct webdoc, ...
Pipeline #104496 passed
......@@ -100,7 +100,7 @@ void OffspecSimulation::runComputation(const ReSample& re_sample, size_t i, doub
if (const auto* footprint = m_scan->footprint())
intensity *= footprint->calculate(alpha);
double sin_alpha_i = std::abs(std::sin(ele.alphaI()));
double sin_alpha_i = std::abs(std::sin(alpha));
if (sin_alpha_i == 0.0) {
intensity = 0;
} else {
......
......@@ -94,11 +94,11 @@ void ScatteringSimulation::runComputation(const ReSample& re_sample, size_t i, d
if (const auto* footprint = beam().footprint())
intensity *= footprint->calculate(beam().alpha_i());
double sin_alpha_i = std::abs(std::sin(ele.alphaI()));
double sin_alpha_i = std::abs(std::sin(beam().alpha_i()));
if (sin_alpha_i == 0.0) {
intensity = 0;
} else {
const double solid_angle = ele.solidAngle();
const double solid_angle = m_pixels[i]->solidAngle();
intensity *= m_beam->intensity() * solid_angle / sin_alpha_i;
}
......
......@@ -13,7 +13,7 @@ add_custom_target(figures) # generate high-resolution figures and store them in
add_custom_target(manualtest)
file(MAKE_DIRECTORY ${FIG_DIR})
foreach(subdir scatter2d ff fq specular varia)
foreach(subdir ff fq offspec scatter2d specular varia)
file(MAKE_DIRECTORY ${TEST_OUTPUT_DIR_PY_PERSIST}/${subdir})
file(MAKE_DIRECTORY ${FIG_DIR}/${subdir})
endforeach()
......
......@@ -21,7 +21,7 @@ The two-dimensional output intensity is plotted as a function of $\alpha\_i$ and
{{< galleryscg >}}
{{< figscg src="/img/draw/Offspec_Setup.jpg" width="350px" caption="Real-space model">}}
{{< figscg src="/img/auto/varia/OffspecSimulation.png" width="350px" caption="Intensity image">}}
{{< figscg src="/img/auto/offspec/Offspec1.png" width="350px" caption="Intensity image">}}
{{< /galleryscg >}}
{{< show-ex file="varia/OffspecSimulation.py" >}}
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