nyroglancer icon indicating copy to clipboard operation
nyroglancer copied to clipboard

In README, change resolution to voxel_size

Open rceballos98 opened this issue 8 years ago • 0 comments

I think neuroglancer might have refactored their code and now trying to pass a resolution argument like this viewer.add(output_view, resolution=[4, 4, 40], name="output") as shown in the README throws this error:

     46         if voxel_size is None:
     47             voxel_size = default_voxel_size
---> 48         self.volume = volume.ServedVolume(data=data, offset=offset, voxel_size=voxel_size, **kwargs)
     49         self.name = name
     50         extra_args = self.extra_args = dict()

TypeError: __init__() got an unexpected keyword argument 'resolution'

This: viewer.add(output_view, voxel_size=[4, 4, 40], name="output"), on the other hand, works perfectly.

Note: the voxel size dimension order is [x, y, z] unlike some datasets (cremi).

rceballos98 avatar Aug 04 '17 17:08 rceballos98