fafbseg.flywire.decode_url¶
-
fafbseg.flywire.
decode_url
(url, ret='brief')[source]¶ Decode neuroglancer URL.
- Parameters
url (str) – URL to decode. Can be shortened URL.
ret ("brief" | "full") – If “brief”, will only return “position” (in voxels), “selected” segment IDs and “annotations”. If full, will return entire scene.
- Returns
- Return type
dict
Examples
>>> from fafbseg import flywire >>> flywire.decode_url('https://ngl.flywire.ai/?json_url=https://globalv1.flywire-daf.com/nglstate/6267328375291904') {'position': [132715.625, 55805.6796875, 3289.61181640625], 'annotations': [], 'selected': ['720575940621039145']}