Example #1
0
def wilks_dictionary(update=False):
    global WILKS_DICTIONARY

    # Update if required or file is not present
    if update or not os.path.exists(WILKS_DICTIONARY_FILE):
        update_wilks_dictionary()

    # Load the file if it is None
    if WILKS_DICTIONARY is None:
        WILKS_DICTIONARY = load(WILKS_DICTIONARY_FILE)

    return WILKS_DICTIONARY
    def load(self, file_):
        self.lifters_map = pickle_.load(file_)

        self.sorted_by()
        self.reset()
def main():
    l = test_LifterCollection()
    from pickle_ import dump, load

    dump('l', l)
    a = load('l')