Skip to content
Extraits de code Groupes Projets
performances_tests.py 641 octets
Newer Older
  • Learn to ignore specific revisions
  • 
    """
    Return a dictionary of the different values found in the receiver stats (.csv) file
    """
    def read_receiver_stats(filename):
        dictionary = {}
        with open(filename, 'r') as f:
            for line in f.readlines():
                key, value = line.split(":")
                dictionary[key] = int(value)
        return dictionary
    
    """
    Return a dictionary of the different values found in the sender stats (.csv) file
    """
    def read_sender_stats(filename):
        dictionary = {}
        with open(filename, 'r') as f:
            for line in f.readlines():
                key, value = line.split(":")
                dictionary[key] = int(value)
        return dictionary