def test_t1_transition(): h5store = os.path.join(stores_dir, "small_hexagonal.hf5") datasets = load_datasets(h5store, data_names=["face", "vert", "edge"]) specs = cylindrical_sheet() sheet = Sheet("emin", datasets, specs) geom.update_all(sheet) face = sheet.edge_df.loc[84, "face"] type1_transition(sheet, 84) assert sheet.edge_df.loc[84, "face"] != face
def test_division(): h5store = os.path.join(stores_dir, "small_hexagonal.hf5") datasets = load_datasets(h5store, data_names=["face", "vert", "edge"]) specs = cylindrical_sheet() sheet = Sheet("emin", datasets, specs) geom.update_all(sheet) Nf, Ne, Nv = sheet.Nf, sheet.Ne, sheet.Nv cell_division(sheet, 17, geom) assert sheet.Nf - Nf == 1 assert sheet.Nv - Nv == 2 assert sheet.Ne - Ne == 6