Skip to content
Snippets Groups Projects
Commit 0329cbfc authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Adding property to allow user to specify compression tolerance

parent ff95ffa0
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@ void LoadEventAndCompress::init() {
copyProperty(algLoadEventNexus, "Filename");
copyProperty(algLoadEventNexus, "OutputWorkspace");
copyProperty(algDetermineChunking, "MaxChunkSize");
declareProperty("CompressTOFTolerance", .01);
copyProperty(algLoadEventNexus, "FilterByTofMin");
copyProperty(algLoadEventNexus, "FilterByTofMax");
......@@ -189,6 +190,7 @@ LoadEventAndCompress::processChunk(API::MatrixWorkspace_sptr wksp) {
auto compressEvents = createChildAlgorithm("CompressEvents");
compressEvents->setProperty("InputWorkspace", eventWS);
compressEvents->setProperty("OutputWorkspace", eventWS);
compressEvents->setProperty<double>("Tolerance", getProperty("CompressTOFTolerance"));
compressEvents->executeAsChildAlg();
eventWS = compressEvents->getProperty("OutputWorkspace");
......
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