Skip to content

Instantly share code, notes, and snippets.

View akhanf's full-sized avatar

Ali Khan akhanf

  • London, Ontario
View GitHub Profile
@akhanf
akhanf / add_to_napari.py
Created April 30, 2025 16:30
napari ome zarr cvpl_tools
import zarr
group = zarr.open_group('/home/UWO/akhan488/graham/lightsheet/test_eed/SPIMprep/bids/sub-M1A1Te3/micr/sub-M1A1Te3_sample-brain_acq-imaris_SPIM.ome.zarr.zip',mode='r')
from cvpl_tools.ome_zarr.napari.add import group as add_group
add_group(viewer=viewer,zarr_group=group,merge_channels=False)
@akhanf
akhanf / zarrnii_example.ipynb
Created November 11, 2025 18:44
Simple zarrnii example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@akhanf
akhanf / write_to_openstack.py
Last active November 27, 2025 15:02
ome-zarr-py writing to openstack example
import numpy as np
import zarr
import s3fs
from zarr.storage import FsspecStore
from ome_zarr.writer import write_image
import os
# Create data
size_xy = 128