unittests: relaxed test thresholds for Ascent

This commit is contained in:
Vicente Adolfo Bolea Sanchez 2022-02-22 22:00:32 -05:00
parent 0b3bef32b0
commit 3956115969
3 changed files with 3 additions and 1 deletions

@ -124,7 +124,7 @@ VTKM_CONT vtkm::cont::DataSet ImageDifference::DoExecute(const vtkm::cont::DataS
"Difference within threshold: "
<< this->ImageDiffWithinThreshold
<< ", for pixels outside threshold: " << errorPixels.GetNumberOfValues()
<< ", with a total number of pixesl: " << thresholdOutput.GetNumberOfValues()
<< ", with a total number of pixels: " << thresholdOutput.GetNumberOfValues()
<< ", and an allowable pixel error ratio: " << this->AllowedPixelErrorRatio
<< ", with a total summed threshold error: "
<< vtkm::cont::Algorithm::Reduce(errorPixels, static_cast<FloatDefault>(0)));

@ -49,6 +49,7 @@ void TestAmrArraysExecute(int dim, int numberOfLevels, int cellsPerDimension)
// result.PrintSummary(std::cout);
vtkm::rendering::testing::RenderTestOptions testOptions;
testOptions.AllowedPixelErrorRatio = 0.001f;
testOptions.ColorTable = vtkm::cont::ColorTable("inferno");
testOptions.EnableAnnotations = false;
vtkm::rendering::testing::RenderTest(

@ -28,6 +28,7 @@ void RenderTests()
vtkm::cont::testing::MakeTestDataSet maker;
vtkm::rendering::testing::RenderTestOptions testOptions;
testOptions.AllowedPixelErrorRatio = 0.002f;
testOptions.Mapper = vtkm::rendering::testing::MapperType::Connectivity;
testOptions.AllowAnyDevice = false;
testOptions.ColorTable = vtkm::cont::ColorTable::Preset::Inferno;