def getScoringVector(self, profile):
        """
        Returns the scoring vector. This function is called by getCandScoresMap().

        :ivar Profile profile: A Profile object that represents an election profile.
        """

        # Check to make sure that the scoring vector contains a score for every possible rank in a
        # ranking.
        if len(self.scoringVector) != profile.numCands:
            print("ERROR: scoring vector is not the correct length")
            exit()

        return self.scoringVector
def getScoringVector ( self , profile ) : if len ( self . scoringVector ) != profile . numCands : print ( "ERROR: scoring vector is not the correct length" ) exit ( ) return self . scoringVector
Returns the scoring vector. This function is called by getCandScoresMap().

        :ivar Profile profile: A Profile object that represents an election profile.