LayerManager (class)ΒΆ

The LayerManager manages the layers attribute on a LoomConnection and provides a dict-like interface. Examples:

with loompy.connect("mydataset.loom") as ds:
    print(ds.layers.keys())
    print(f"There are {len(ds.layers)} layers")
    for name, layer in ds.layers.items():
        print(name, layer.shape, layer.dtype)