diff --git a/Sim/Export/SimulationToPython.cpp b/Sim/Export/SimulationToPython.cpp index 8bfc5fd85469871afb31dc767f087df35f39f7f2..1f2a35694b1d7b91f5e48836ab5b7bdb701ede10 100644 --- a/Sim/Export/SimulationToPython.cpp +++ b/Sim/Export/SimulationToPython.cpp @@ -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(); } diff --git a/Sim/Scan/ScanResolution.h b/Sim/Scan/ScanResolution.h index a707bf5aa62f7f4806a9036e07e209f32cd31bf8..237cdacaf6188b2b29d678fceee3db83247fd41a 100644 --- a/Sim/Scan/ScanResolution.h +++ b/Sim/Scan/ScanResolution.h @@ -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