Will cloud-volume support the new Neuroglancer $PROTOCOL://$BUCKET/$DATASET/$LAYER|$FORMAT:
?
#653
Answered
by
chourroutm
chourroutm
asked this question in
Q&A
-
Neuroglancer has introduced |
Beta Was this translation helpful? Give feedback.
Answered by
chourroutm
Mar 29, 2025
Replies: 2 comments 1 reply
-
I just added some support to cloudfiles for dealing with "|neuroglancer-precomputed:" specifically, but it'll need a bit more work. |
Beta Was this translation helpful? Give feedback.
1 reply
-
this works!
…On Sat, Mar 29, 2025 at 7:39 AM Matthieu Chourrout ***@***.***> wrote:
Okay, thanks!
As a workaround, would this work?
import reimport cloudvolume
def _legacy_source_url(source_url):
match = re.match(r'^(.*)\|(.*)\:$', source_url)
if match:
protocol_url = match.group(1)
pipe_format = match.group(2)
if pipe_format == "neuroglancer-precomputed":
pipe_format = "precomputed"
return f"{pipe_format}://{protocol_url}"
else:
return source_url
vol = cloudvolume.CloudVolume(_legacy_source_url(source.url), parallel=True, progress=True, use_https=True)
—
Reply to this email directly, view it on GitHub
<#653 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATGQSIOJULZPQPCBTMMSUD2WZZ6XAVCNFSM6AAAAABZQBCEV2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRWGE3DKMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, thanks!
As a workaround, would this work?