Apply Layer Offset

42 views
Skip to first unread message

Steven Roche

unread,
Aug 1, 2022, 9:12:37 AM8/1/22
to Neuroglancer
How can I apply an offset to change where a layer is loaded within neuroglancer? I am using the following code to append the layer: 

def ngLayer(data,res,oo=[0,0,0,0],tt='segmentation'):
    return neuroglancer.LocalVolume(data,volume_type=tt)

Bu when I try to apply something like voxel_offset, I get an error with this code:
def ngLayer2(data,res,oo=[0,0,0,0],tt='segmentation'):
    return neuroglancer.LocalVolume(data,dimensions=res,volume_type=tt, voxel_offset=oo)

How can I move where the layer is added?

Steven Roche

unread,
Aug 1, 2022, 9:15:53 AM8/1/22
to Neuroglancer
Note, the error I receive is: AttributeError: 'list' object has no attribute 'rank'
Reply all
Reply to author
Forward
0 new messages