unittests: relaxed test thresholds for Ascent
This commit is contained in:
parent
0b3bef32b0
commit
3956115969
@ -124,7 +124,7 @@ VTKM_CONT vtkm::cont::DataSet ImageDifference::DoExecute(const vtkm::cont::DataS
|
|||||||
"Difference within threshold: "
|
"Difference within threshold: "
|
||||||
<< this->ImageDiffWithinThreshold
|
<< this->ImageDiffWithinThreshold
|
||||||
<< ", for pixels outside threshold: " << errorPixels.GetNumberOfValues()
|
<< ", 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
|
<< ", and an allowable pixel error ratio: " << this->AllowedPixelErrorRatio
|
||||||
<< ", with a total summed threshold error: "
|
<< ", with a total summed threshold error: "
|
||||||
<< vtkm::cont::Algorithm::Reduce(errorPixels, static_cast<FloatDefault>(0)));
|
<< 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);
|
// result.PrintSummary(std::cout);
|
||||||
|
|
||||||
vtkm::rendering::testing::RenderTestOptions testOptions;
|
vtkm::rendering::testing::RenderTestOptions testOptions;
|
||||||
|
testOptions.AllowedPixelErrorRatio = 0.001f;
|
||||||
testOptions.ColorTable = vtkm::cont::ColorTable("inferno");
|
testOptions.ColorTable = vtkm::cont::ColorTable("inferno");
|
||||||
testOptions.EnableAnnotations = false;
|
testOptions.EnableAnnotations = false;
|
||||||
vtkm::rendering::testing::RenderTest(
|
vtkm::rendering::testing::RenderTest(
|
||||||
|
@ -28,6 +28,7 @@ void RenderTests()
|
|||||||
vtkm::cont::testing::MakeTestDataSet maker;
|
vtkm::cont::testing::MakeTestDataSet maker;
|
||||||
|
|
||||||
vtkm::rendering::testing::RenderTestOptions testOptions;
|
vtkm::rendering::testing::RenderTestOptions testOptions;
|
||||||
|
testOptions.AllowedPixelErrorRatio = 0.002f;
|
||||||
testOptions.Mapper = vtkm::rendering::testing::MapperType::Connectivity;
|
testOptions.Mapper = vtkm::rendering::testing::MapperType::Connectivity;
|
||||||
testOptions.AllowAnyDevice = false;
|
testOptions.AllowAnyDevice = false;
|
||||||
testOptions.ColorTable = vtkm::cont::ColorTable::Preset::Inferno;
|
testOptions.ColorTable = vtkm::cont::ColorTable::Preset::Inferno;
|
||||||
|
Loading…
Reference in New Issue
Block a user