Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

In README, change resolution to voxel_size #7

Open
rceballos98 opened this issue Aug 4, 2017 · 0 comments
Open

In README, change resolution to voxel_size #7

rceballos98 opened this issue Aug 4, 2017 · 0 comments

Comments

@rceballos98
Copy link

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).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant