import sys import os import zarr if __name__ == '__main__': if len(sys.argv) != 2: print("Usage: python test.py ") sys.exit(1) db_name = sys.argv[1] proj_root = os.getcwd() filename = os.path.join(proj_root, db_name) file = zarr.open(filename, mode='r') data = file['0/0/ptxt'] print(data.get_orthogonal_selection((0, slice(0,4,2))))