(self, index)
return (coord_x, coord_y)
returns index in data as x,y
returns index in data as x,y
returns index in data as x y
def index_to_coords(self, index):
        """ returns index in data as x,y
        """
        coord_x = int(index % self.bytes_per_line)
        coord_y = int(index / self.bytes_per_line)
        return (coord_x, coord_y)
def index_to_coords ( self , index ) : coord_x = int ( index % self . bytes_per_line ) coord_y = int ( index / self . bytes_per_line ) return ( coord_x , coord_y )