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

merge fcts

parent d921479f
No related branches found
No related tags found
1 merge request!1303simplifications of resolution handling; resolve warnings
......@@ -97,12 +97,12 @@ std::string defineAlphaScan(const AlphaScan& scan)
if (const auto* r = scan.angleResolution(); r && r->rdistribution()) {
result << Py::Fmt2::printRangedDistribution(*r->rdistribution()) << "\n";
result << indent() << "scan.setAbsoluteAngularResolution(distribution, "
<< Py::Fmt::printDouble(r->delta()) << ")\n";
<< Py::Fmt::printDouble(r->stdDev()) << ")\n";
}
if (const auto* r = scan.wavelengthResolution(); r && r->rdistribution()) {
result << Py::Fmt2::printRangedDistribution(*r->rdistribution()) << "\n";
result << indent() << "scan.setWavelengthResolution(distribution, "
<< Py::Fmt::printDouble(r->delta()) << ")\n";
<< Py::Fmt::printDouble(r->stdDev()) << ")\n";
}
return result.str();
}
......
......@@ -43,12 +43,6 @@ public:
return m_stddev;
}
//... For export:
double delta() const
{
return m_stddev;
}
protected:
std::unique_ptr<IRangedDistribution> m_distr; //!< basic distribution function
double m_stddev; //!< deltas for computing resolutions
......
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