def update_hierarchy_pickle(): fname = os.path.join(path, 'bio_hierarchies.pkl') hierarchies = get_bio_hierarchies(from_pickle=False) with open(fname, 'wb') as fh: pickle.dump(hierarchies, fh, protocol=4)
def test_bio_hierarchy_pickles(): h1 = get_bio_hierarchies() h2 = get_bio_hierarchies(from_pickle=False) for key in h1.keys(): assert len(h1[key].graph) == len(h2[key].graph)
def test_bio_hierarchy_pickles(): h1 = get_bio_hierarchies() h2 = get_bio_hierarchies(from_pickle=False) for key in h1.keys(): assert len(h1[key].graph) == len(h2[key].graph)
def update_hierarchy_pickle(): fname = os.path.join(path, 'bio_hierarchies.pkl') hierarchies = get_bio_hierarchies(from_pickle=False) with open(fname, 'wb') as fh: pickle.dump(hierarchies, fh, protocol=4)