Updated Image Element comparisons
@@ -549,31 +549,26 @@ class Comparison(ComparisonInterface):
@classmethod
def compare_heatmap(cls, el1, el2, msg='HeatMap'):
- cls.compare_dimensioned(el1, el2)
- cls.compare_arrays(el1.data, el2.data, msg)
+ cls.compare_dataset(el1, el2, msg)
@classmethod
def compare_image(cls, el1, el2, msg='Image'):
- cls.compare_dimensioned(el1, el2)
- cls.compare_arrays(el1.data, el2.data, msg)
+ cls.compare_dataset(el1, el2, msg)
cls.bounds_check(el1,el2)
@classmethod
def compare_rgb(cls, el1, el2, msg='RGB'):
- cls.compare_dimensioned(el1, el2)
- cls.compare_arrays(el1.data, el2.data, msg=msg)
+ cls.compare_dataset(el1, el2, msg)
cls.bounds_check(el1,el2)
@classmethod
def compare_hsv(cls, el1, el2, msg='HSV'):
- cls.compare_dimensioned(el1, el2)
- cls.compare_arrays(el1.data, el2.data, msg=msg)
+ cls.compare_dataset(el1, el2, msg)
cls.bounds_check(el1,el2)
@classmethod
def compare_surface(cls, el1, el2, msg='Surface'):
- cls.compare_dimensioned(el1, el2)
- cls.compare_arrays(el1.data, el2.data, msg=msg)
+ cls.compare_dataset(el1, el2, msg)
#========#
