def test_effector(): sheet_dsets, specs = three_faces_sheet() sheet = Sheet("test", sheet_dsets, specs) mono = Monolayer.from_flat_sheet("test", sheet, config.geometry.bulk_spec()) testing.effector_tester(mono, BorderElasticity)
def test_models(): sheet_dsets, specs = three_faces_sheet() sheet = Sheet("test", sheet_dsets, specs) mono = Monolayer.from_flat_sheet("test", sheet, config.geometry.bulk_spec()) testing.model_tester(mono, BulkModel) testing.model_tester(mono, BulkModelwithFreeBorders)
def test_effectors(): sheet_dsets, specs = three_faces_sheet() sheet = Sheet("test", sheet_dsets, specs) mono = Monolayer.from_flat_sheet("test", sheet, config.geometry.bulk_spec()) for effector in sheet_effectors: testing.effector_tester(sheet, effector) for effector in bulk_effectors: testing.effector_tester(mono, effector)
def test_monolayer(): sheet = Sheet("test", *three_faces_sheet()) mono = Monolayer.from_flat_sheet("test", sheet, config.geometry.bulk_spec()) assert_array_equal(mono.apical_verts.values, np.arange(13)) assert_array_equal(mono.basal_verts.values, np.arange(13) + 13) assert_array_equal(mono.apical_edges.values, np.arange(18)) assert_array_equal(mono.basal_edges.values, np.arange(18) + 18) assert_array_equal(mono.lateral_edges.values, np.arange(72) + 36) assert_array_equal(mono.apical_faces.values, np.arange(3)) assert_array_equal(mono.basal_faces.values, np.arange(3) + 3) assert_array_equal(mono.lateral_faces.values, np.arange(18) + 6)
def test_models(): sheet_dsets, specs = three_faces_sheet() sheet = Sheet("test", sheet_dsets, specs) mono = Monolayer.from_flat_sheet("test", sheet, config.geometry.bulk_spec()) testing.model_tester(mono, BulkModel) testing.model_tester(mono, BulkModelwithFreeBorders) datasets = load_datasets( Path(stores_dir) / "small_ellipsoid.hf5", data_names=["vert", "edge", "face", "cell"], ) specs = config.geometry.bulk_spec() monolayer = Monolayer("ell", datasets, specs) testing.model_tester(mono, ClosedMonolayerModel)