Skip to content

In README, change resolution to voxel_size #7

@rceballos98

Description

@rceballos98

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions