def __eq__()

in ez_wsi_dicomweb/slide_level_map.py [0:0]


  def __eq__(self, other: Any) -> bool:
    if not isinstance(other, ResizedLevel):
      return False
    return (
        (
            self._source_image_level is other._source_image_level
            or self._source_image_level == other._source_image_level
        )
        and self._resized_level_dim == other._resized_level_dim
        and self._resized_pixel_spacing == other._resized_pixel_spacing
        and self._width_scale_factor == other._width_scale_factor
        and self._height_scale_factor == other._height_scale_factor
    )