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

assert, comment

parent 81bc14c7
No related branches found
No related tags found
1 merge request!1282simplify AlphaScan
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "Sim/Scan/QzScan.h" #include "Sim/Scan/QzScan.h"
#include "Base/Axis/FixedBinAxis.h" #include "Base/Axis/FixedBinAxis.h"
#include "Base/Axis/PointwiseAxis.h" #include "Base/Axis/PointwiseAxis.h"
#include "Base/Util/Assert.h"
#include "Device/Coord/CoordSystem1D.h" #include "Device/Coord/CoordSystem1D.h"
#include "Device/Pol/PolFilter.h" #include "Device/Pol/PolFilter.h"
#include "Param/Distrib/ParameterSample.h" #include "Param/Distrib/ParameterSample.h"
...@@ -89,9 +90,8 @@ std::vector<SpecularElement> QzScan::generateElements() const ...@@ -89,9 +90,8 @@ std::vector<SpecularElement> QzScan::generateElements() const
std::vector<double> QzScan::footprint(size_t i, size_t n_elements) const std::vector<double> QzScan::footprint(size_t i, size_t n_elements) const
{ {
if (i + n_elements > nSteps()) ASSERT(i + n_elements <= nSteps());
throw std::runtime_error("Error in QzScan::footprint: given index exceeds the " // There is no way to set a footprint correction for q scans.
"number of simulation elements");
return std::vector<double>(n_elements, 1.0); return std::vector<double>(n_elements, 1.0);
} }
......
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