Skip to content

Commit

Permalink
feat: zarr volumes should display x,y,z,c,t instead of t,c,z,y,x
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Jul 3, 2024
1 parent 2a88b63 commit 086a0e6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions igneous_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,30 @@ def view(path, browser, port, ng):
cloudpath = cv.cloudpath
layer_name = posixpath.basename(cloudpath)

res = cv.meta.resolution(0)

dimensions = {
"x": [
res.x,
"nm"
],
"y": [
res.y,
"nm"
],
"z": [
res.z,
"nm"
],
}

if cv.meta.path.format == "zarr":
dimensions["t"] = [
cv.meta.time_resolution_in_seconds(0), "s"
]

config = {
"dimensions": dimensions,
"layers": [
{
"type": cv.layer_type,
Expand Down

0 comments on commit 086a0e6

Please sign in to comment.