Skip to content
Snippets Groups Projects
Commit e7125ffc authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

set degrees as default units for offspec job

parent 11229b70
No related branches found
No related tags found
1 merge request!1690Repair offspecular simulation in GUI (#641)
Pipeline #102474 passed
...@@ -296,10 +296,16 @@ void JobItem::createSimulatedDataItem() ...@@ -296,10 +296,16 @@ void JobItem::createSimulatedDataItem()
// Set default axes units for simulated data. // Set default axes units for simulated data.
// Can be overriden by units from RealItem // Can be overriden by units from RealItem
if (isSpecularJob()) if (instrumentItem()->is<SpecularInstrumentItem>())
m_simulatedDataItem->setCurrentCoord(Coords::QSPACE); m_simulatedDataItem->setCurrentCoord(Coords::QSPACE);
else else if (instrumentItem()->is<GISASInstrumentItem>())
m_simulatedDataItem->setCurrentCoord(Coords::QSPACE);
else if (instrumentItem()->is<OffspecInstrumentItem>())
m_simulatedDataItem->setCurrentCoord(Coords::DEGREES); // Coords::QSPACE is unsupported
else if (instrumentItem()->is<DepthprobeInstrumentItem>())
m_simulatedDataItem->setCurrentCoord(Coords::QSPACE); m_simulatedDataItem->setCurrentCoord(Coords::QSPACE);
else
ASSERT(false);
} }
IntensityDataItem* JobItem::intensityDataItem() IntensityDataItem* JobItem::intensityDataItem()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment