def zoom_out_pixel(self, curr_pixel):
        """ return the curr_frag at a lower resolution"""
        low_frag = curr_pixel[0]
        high_frag = curr_pixel[1]
        level = curr_pixel[2]
        str_level = str(level)
        if level < self.n_level - 1:
            low_super = self.spec_level[str_level]["fragments_dict"][low_frag][
                "super_index"
            ]
            high_super = self.spec_level[str_level]["fragments_dict"][
                high_frag
            ]["sub_index"]

            new_pix_low = min([low_super, high_super])
            new_pix_high = max([low_super, high_super])
            new_level = level + 1
            new_pixel = [new_pix_low, new_pix_high, new_level]
        else:
            new_pixel = curr_pixel
        return new_pixel
def zoom_out_pixel ( self , curr_pixel ) : low_frag = curr_pixel [ 0 ] high_frag = curr_pixel [ 1 ] level = curr_pixel [ 2 ] str_level = str ( level ) if level < self . n_level - 1 : low_super = self . spec_level [ str_level ] [ "fragments_dict" ] [ low_frag ] [ "super_index" ] high_super = self . spec_level [ str_level ] [ "fragments_dict" ] [ high_frag ] [ "sub_index" ] new_pix_low = min ( [ low_super , high_super ] ) new_pix_high = max ( [ low_super , high_super ] ) new_level = level + 1 new_pixel = [ new_pix_low , new_pix_high , new_level ] else : new_pixel = curr_pixel return new_pixel
return the curr_frag at a lower resolution