Commit acf8a44a authored by Dominik Arominski's avatar Dominik Arominski
Browse files

Changed time to TOF as X axis unit for TOF data

parent 32b79e95
......@@ -298,7 +298,7 @@ LoadILLPolarizedDiffraction::initStaticWorkspace(const NXEntry &entry) {
lblUnit->setLabel("Time channel", Units::Symbol::EmptyLabel);
workspace->getAxis(0)->unit() = lblUnit;
} else {
workspace->getAxis(0)->unit() = UnitFactory::Instance().create("Time");
workspace->getAxis(0)->unit() = UnitFactory::Instance().create("TOF");
}
} else {
workspace->getAxis(0)->unit() =
......
......@@ -154,8 +154,8 @@ public:
std::dynamic_pointer_cast<Mantid::API::MatrixWorkspace>(
outputWS->getItem(0));
TS_ASSERT(workspaceEntry1)
TS_ASSERT_EQUALS(workspaceEntry1->getAxis(0)->unit()->unitID(), "Time")
TS_ASSERT_EQUALS(workspaceEntry1->getAxis(0)->unit()->caption(), "t")
TS_ASSERT_EQUALS(workspaceEntry1->getAxis(0)->unit()->unitID(), "TOF")
TS_ASSERT_EQUALS(workspaceEntry1->getAxis(0)->unit()->caption(), "Time-of-flight")
TS_ASSERT_DELTA(workspaceEntry1->x(0)[0], 180.00, 0.01)
TS_ASSERT_DELTA(workspaceEntry1->x(0)[1], 186.64, 0.01)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment