diff --git a/pyglance/glance/data.py b/pyglance/glance/data.py index ea875ecb278a397e903aeb0148c23f1afe22bb20..74015cbf27231756b9a9ab1cde96f392016a19ce 100644 --- a/pyglance/glance/data.py +++ b/pyglance/glance/data.py @@ -261,11 +261,9 @@ class DiffInfoObject (object) : # the valid data which is too different between the two sets according to the given epsilon outside_epsilon_mask = np.zeros(shape, dtype=np.bool) if (epsilonValue is not None) : - outside_epsilon_mask = outside_epsilon_mask | \ - (abs(raw_diff) > epsilonValue) & valid_in_both + outside_epsilon_mask |= (abs(raw_diff) > epsilonValue) & valid_in_both if (epsilonPercent is not None) : - outside_epsilon_mask = outside_epsilon_mask | \ - ((abs(raw_diff) > (aDataObject.data * (float(epsilonPercent) / 100.0))) & valid_in_both) + outside_epsilon_mask |= (abs(raw_diff) > abs(aDataObject.data * (float(epsilonPercent) / 100.0))) & valid_in_both # trouble points = mismatched nans, mismatched missing-values, differences that are too large trouble_pt_mask = ( (aDataObject.masks.non_finite_mask ^ bDataObject.masks.non_finite_mask) |