Skip to content

Commit

Permalink
hardcode in XY for API
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmac committed Oct 5, 2023
1 parent f6f0767 commit f49c0d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion em_workflows/czi/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ def gen_imageSet(file_path: FilePath) -> List:
ng_asset = file_path.gen_asset(
asset_type="neuroglancerZarr", asset_fp=Path(zarr_fp) / zarr_idx
)
# note - dims should be image.dims, but GUI does not want XYC
# hardcoding in XY for now.
ng_asset["metadata"] = dict(
shader=image.shader_type,
dimensions=image.dims,
dimensions="XY",
shaderParameters=image.neuroglancer_shader_parameters(),
)
assets.append(ng_asset)
Expand Down
4 changes: 3 additions & 1 deletion em_workflows/lrg_2d_rgb/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ def generate_ng_asset(file_path: FilePath) -> Dict:
ng_asset = file_path.gen_asset(
asset_type=AssetType.NEUROGLANCER_ZARR, asset_fp=first_zarr_arr
)
# the GUI / API does not want to see dims XYC, will set to 'XY' for now
# should be hw_image.dims
ng_asset["metadata"] = dict(
shader=hw_image.shader_type,
dimensions=hw_image.dims,
dimensions="XY",
shaderParameters=hw_image.neuroglancer_shader_parameters(),
)
return ng_asset
Expand Down

0 comments on commit f49c0d1

Please sign in to comment.