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
std::unique_ptr<Instrument> Instrument2DItem::createPolInstrument() const
{
auto beam = beamItem()->createBeam();
beam->setPolarization(m_polarization);
auto detector = detectorItem()->createDetector();
detector->setDetectorNormal(beam->direction().zReflected());
// TODO: Why not check "if (withPolarizerAnalyzer())"? But if it is inserted, some of the unit
// tests fail (because in the unit tests this flag is never set to true)
// The Unit test are e.g. TestGuiStd/Std/MagneticCylinders
beam->setPolarization(m_polarization);
detector->setAnalyzer(m_analyzerDirection, m_analyzerEfficiency, m_analyzerTotalTransmission);
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