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

rm comment

parent 20540605
No related branches found
No related tags found
2 merge requests!907Core cleanup,!905mv class Instrument out of core
...@@ -368,13 +368,10 @@ std::unique_ptr<Instrument> Instrument2DItem::createInstrument() const ...@@ -368,13 +368,10 @@ std::unique_ptr<Instrument> Instrument2DItem::createInstrument() const
std::unique_ptr<Instrument> Instrument2DItem::createPolInstrument() const std::unique_ptr<Instrument> Instrument2DItem::createPolInstrument() const
{ {
auto beam = beamItem()->createBeam(); auto beam = beamItem()->createBeam();
beam->setPolarization(m_polarization);
auto detector = detectorItem()->createDetector(); auto detector = detectorItem()->createDetector();
detector->setDetectorNormal(beam->direction().zReflected()); detector->setDetectorNormal(beam->direction().zReflected());
// TODO: Why not check "if (withPolarizerAnalyzer())"? But if it is inserted, some of the unit beam->setPolarization(m_polarization);
// tests fail (because in the unit tests this flag is never set to true)
// The Unit test are e.g. TestGuiStd/Std/MagneticCylinders
detector->setAnalyzer(m_analyzerDirection, m_analyzerEfficiency, m_analyzerTotalTransmission); detector->setAnalyzer(m_analyzerDirection, m_analyzerEfficiency, m_analyzerTotalTransmission);
return std::make_unique<Instrument>(*beam, *detector); return std::make_unique<Instrument>(*beam, *detector);
......
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