Skip to content

Commit

Permalink
make neuroglancer runs, but nothing shows up
Browse files Browse the repository at this point in the history
  • Loading branch information
jingpengw committed Aug 22, 2020
1 parent c930f89 commit ddd8886
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chunkflow/flow/neuroglancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ def __call__(self, chunks: dict):
for chunk_name, chunk in chunks.items():
global_offset = chunk.global_offset
chunk = np.ascontiguousarray(chunk)

s.layers.append(
name=chunk_name,
layer=ng.LocalVolume(
data=chunk,
dimensions=neuroglancer.CordinateSpace(
scales=[1, *self.voxel_size[::-1]],
units = ['', 'nm', 'nm', 'nm'],
names = ['c^', 'x', 'y', 'z']
dimensions=ng.CoordinateSpace(
scales=self.voxel_size[::-1],
units = ['nm', 'nm', 'nm'],
names = ['x', 'y', 'z']
),
# offset is in nm, not voxels
offset=list(o * v for o, v in zip(
voxel_offset=tuple(o * v for o, v in zip(
global_offset[::-1][-3:], self.voxel_size[::-1])))
)
print('Open this url in browser: ')
Expand Down

0 comments on commit ddd8886

Please sign in to comment.