Skip to content
Snippets Groups Projects
Commit 7cc41f67 authored by Janik Zikovsky's avatar Janik Zikovsky
Browse files

Refs #2167: Test should not have been un-commented.

parent 7fefb3c2
No related branches found
No related tags found
No related merge requests found
...@@ -187,39 +187,40 @@ public: ...@@ -187,39 +187,40 @@ public:
TS_ASSERT_DELTA( mon->getDistance(*sample), 1.426, 1e-6 ); TS_ASSERT_DELTA( mon->getDistance(*sample), 1.426, 1e-6 );
} }
void do_LoadWithPrecount(bool precount) //
{ // void do_LoadWithPrecount(bool precount)
Timer time; // {
Mantid::API::FrameworkManager::Instance(); // Timer time;
LoadSNSEventNexus * ld = new LoadSNSEventNexus(); // Mantid::API::FrameworkManager::Instance();
std::string outws_name = "TOPAZ_1715"; // LoadSNSEventNexus * ld = new LoadSNSEventNexus();
ld->initialize(); // std::string outws_name = "TOPAZ_1715";
ld->setPropertyValue("Filename","/home/8oz/data/TOPAZ_1715_event.nxs"); // ld->initialize();
// ld->setPropertyValue("Filename","/home/8oz/data/SEQ_4533_event.nxs"); // ld->setPropertyValue("Filename","/home/8oz/data/TOPAZ_1715_event.nxs");
ld->setPropertyValue("OutputWorkspace",outws_name); //// ld->setPropertyValue("Filename","/home/8oz/data/SEQ_4533_event.nxs");
ld->setPropertyValue("FilterByTof_Min", "-1e10"); // ld->setPropertyValue("OutputWorkspace",outws_name);
ld->setPropertyValue("FilterByTof_Max", "1e10"); // ld->setPropertyValue("FilterByTof_Min", "-1e10");
ld->setPropertyValue("FilterByTime_Start", "-1e10"); // ld->setPropertyValue("FilterByTof_Max", "1e10");
ld->setPropertyValue("FilterByTime_Stop", "1e10"); // ld->setPropertyValue("FilterByTime_Start", "-1e10");
// ld->setProperty("Precount", precount); // ld->setPropertyValue("FilterByTime_Stop", "1e10");
ld->execute(); //// ld->setProperty("Precount", precount);
TS_ASSERT( ld->isExecuted() ); // ld->execute();
// TS_ASSERT( ld->isExecuted() );
std::cout << time.elapsed() << " seconds to load.\n"; //
// std::cout << time.elapsed() << " seconds to load.\n";
DataObjects::EventWorkspace_sptr WS = boost::dynamic_pointer_cast<DataObjects::EventWorkspace>(AnalysisDataService::Instance().retrieve(outws_name)); //
//Valid WS and it is an EventWorkspace // DataObjects::EventWorkspace_sptr WS = boost::dynamic_pointer_cast<DataObjects::EventWorkspace>(AnalysisDataService::Instance().retrieve(outws_name));
TS_ASSERT( WS ); // //Valid WS and it is an EventWorkspace
//Pixels have to be padded // TS_ASSERT( WS );
TS_ASSERT_EQUALS( WS->getNumberHistograms(), 65536 * 15); // //Pixels have to be padded
TS_ASSERT_EQUALS( WS->getNumberEvents(), 2942639); // TS_ASSERT_EQUALS( WS->getNumberHistograms(), 65536 * 15);
} // TS_ASSERT_EQUALS( WS->getNumberEvents(), 2942639);
// }
void testTOPAZ() //
{ // void testTOPAZ()
do_LoadWithPrecount(false); // {
// do_LoadWithPrecount(true); // do_LoadWithPrecount(false);
} //// do_LoadWithPrecount(true);
// }
}; };
......
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