def check_line_length(self, splitted_line, expected_length):
        """
        Check if the line is correctly formated. Throw a SyntaxError if it is not.
        """
        if len(splitted_line) != expected_length:
            raise WrongLineFormat(
                            message='WRONG FORMATED PED LINE!',
                            ped_line = '\t'.join(splitted_line))
        return
Check if the line is correctly formated. Throw a SyntaxError if it is not.