(shot_tuples)
return shots
Convert list of shot tuples to list of athena Shot objects
        :param shot_tuples:  [(id, name, sequence, start_frame, end_frame, width, height, description)]
        :return:
Convert list of shot tuples to list of athena Shot objects
        :param shot_tuples:  [(id, name, sequence, start_frame, end_frame, width, height, description)]
        :return:
Convert list of shot tuples to list of athena Shot objects : param shot_tuples : [ ( id name sequence start_frame end_frame width height description ) ] : return :
def convert_to_shot(shot_tuples):
        """
        Convert list of shot tuples to list of athena Shot objects
        :param shot_tuples:  [(id, name, sequence, start_frame, end_frame, width, height, description)]
        :return:
        """

        shots = []

        for shot_tuple in shot_tuples:
            shot = Shot(shot_tuple[1], shot_tuple[2])
            shot.id = shot_tuple[0]
            shot.start_frame = shot_tuple[3]
            shot.end_frame = shot_tuple[4]
            shot.width = shot_tuple[5]
            shot.height = shot_tuple[6]
            shot.description = shot_tuple[7]
            shots.append(shot)

        return shots
def convert_to_shot ( shot_tuples ) : shots = [ ] for shot_tuple in shot_tuples : shot = Shot ( shot_tuple [ 1 ] , shot_tuple [ 2 ] ) shot . id = shot_tuple [ 0 ] shot . start_frame = shot_tuple [ 3 ] shot . end_frame = shot_tuple [ 4 ] shot . width = shot_tuple [ 5 ] shot . height = shot_tuple [ 6 ] shot . description = shot_tuple [ 7 ] shots . append ( shot ) return shots