Skip to content

Commit

Permalink
Use URI format for output of precomputed-pyramid
Browse files Browse the repository at this point in the history
On windows the "C:/" full paths are not supported by
volume-to-precomputed-pyramid.
  • Loading branch information
blowekamp committed Apr 6, 2021
1 parent c2e33bd commit 0bf9920
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytools/ng/mrc2ngpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import os.path
import sys
import logging
from pathlib import Path


@click.command()
Expand Down Expand Up @@ -74,7 +75,8 @@ def main(input_image, output_precompute, flat, gzip):
if not gzip:
cmd_opts.append("--no-gzip")

cmd = ["volume-to-precomputed-pyramid"] + cmd_opts + [nifti_filename, output_precompute]
cmd = ["volume-to-precomputed-pyramid"] + cmd_opts + [nifti_filename,
Path(output_precompute).as_uri()]

logger.info("Executing conversion of NIFTI to Neruoglancer precompute pyramid...")
logger.debug(f"Executing: {cmd}")
Expand Down

0 comments on commit 0bf9920

Please sign in to comment.