Commit a54f8258 authored by whitlocb's avatar whitlocb
Browse files

A better fix for filter metadata in Threshold so it also fixes expression.py test.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23133 18c085ea-50e0-402c-830e-de6fd14e8384
parent 4e799d29
......@@ -207,19 +207,28 @@ avtThresholdPluginFilter::UpdateDataObjectInfoCB(avtDataObject_p &input,
int nvars = (int)(t.GetListedVarNames().size());
for(int i = 0; i < nvars; ++i)
{
if(i < t.GetLowerBounds().size() && i < t.GetUpperBounds().size())
if(i < t.GetLowerBounds().size())
{
SNPRINTF(tmp, 200, "%lg < ", t.GetLowerBounds()[i]);
params += tmp;
}
if(i < t.GetLowerBounds().size() || i < t.GetUpperBounds().size())
{
if(t.GetListedVarNames()[i] == "default")
params += t.GetDefaultVarName();
else
params += t.GetListedVarNames()[i];
}
if(i < t.GetUpperBounds().size())
{
SNPRINTF(tmp, 200, " < %lg", t.GetUpperBounds()[i]);
params += tmp;
if(i < nvars-1)
params += ", ";
}
if(i < nvars-1)
params += ", ";
}
outAtts.AddFilterMetaData("Threshold", params);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment