Exemple #1
0
def update_wilks_dictionary():
    global WILKS_DICTIONARY

    # Parse each set of wilks coefficients
    wilks_ = {}
    wilks_['M'] = parse_wilks_table(WILKS_TABLE_MEN)
    wilks_['F'] = parse_wilks_table(WILKS_TABLE_WOMEN)

    # Dump to file
    dump(WILKS_DICTIONARY_FILE, wilks_)

    # Reset WILKS_DICTIONARY
    WILKS_DICTIONARY = wilks_
 def save(self, file_):
     pickle_.dump(file_, self.lifters_map)
def main():
    l = test_LifterCollection()
    from pickle_ import dump, load

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