Skip to content
Snippets Groups Projects
Commit 60d51ee0 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Ensure RAM parameter is used by persistent filters (should be applied...

ENH: Ensure RAM parameter is used by persistent filters (should be applied likewise for all applications)
parent af5bc049
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,9 @@ private:
filter->SetClassFieldName(this->GetParameterString("field"));
filter->SetOutputFieldPrefix(namePrefix);
filter->SetOutputFieldNames(nameList);
filter->GetStreamer()->SetAutomaticAdaptativeStreaming(GetParameterInt("ram"));
AddProcess(filter->GetStreamer(),"Extracting sample values...");
filter->Update();
output->SyncToDisk();
......
......@@ -264,6 +264,10 @@ private:
m_RateCalculator->ClearRates();
m_Periodic->GetFilter()->ClearOutputs();
m_Random->GetFilter()->ClearOutputs();
// Setup ram
m_Periodic->GetStreamer()->SetAutomaticAdaptativeStreaming(GetParameterInt("ram"));
m_Random->GetStreamer()->SetAutomaticAdaptativeStreaming(GetParameterInt("ram"));
m_ReaderStat->SetFileName(this->GetParameterString("instats"));
ClassCountMapType classCount = m_ReaderStat->GetStatisticMapByName<ClassCountMapType>("samplesPerClass");
......
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