Skip to content

Commit

Permalink
Merge branch 'master' of github.com:seung-lab/chunkflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xiuliren committed Oct 25, 2024
2 parents 1214953 + edd2c5a commit 12f9232
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ After installation, You can simply type `chunkflow` and it will list all the ope
| save-tif | Save chunk as TIFF file |
| save-synapses | Save synapses as a HDF5 file. |
| save-swc | Save skeletons as a SWC file. |
| save-zarr| Save volume as a Zarr folder |

## Affiliation
This package is developed at Princeton University and Flatiron Institute.
Expand Down
6 changes: 3 additions & 3 deletions chunkflow/flow/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def cleanup(dir: str, mode: str, suffix: str):
help='voxel size with unit of nm')
@click.option('--voxel-offset', '-o', default=None, type=click.INT, nargs=3, callback=default_none,
help='voxel offset of array')
@click.option('--volume-size', '-v',
@click.option('--volume-size', '-z',
type=click.INT, nargs=3, default=None, callback=default_none,
help='total size of the volume.')
@click.option('--block-size', '-b',
Expand Down Expand Up @@ -931,7 +931,7 @@ def load_png(tasks: dict, path: str,
@click.option('--output-chunk-name', '-o', type=str, default='chunk',
help='chunk name in the global state')
@operator
def read_tif(tasks, name: str, file_name: str, voxel_offset: tuple,
def load_tif(tasks, name: str, file_name: str, voxel_offset: tuple,
voxel_size: tuple, dtype: str, output_chunk_name: str):
"""Read tiff files."""
for task in tasks:
Expand Down Expand Up @@ -1411,7 +1411,7 @@ def load_zarr(tasks, store: str, path: str, chunk_start: tuple, voxel_size: tupl
@main.command('save-zarr')
@click.option('--store', '-s', type=str, required=True,
help = 'Zarr store path')
@click.option('--shape', '-s', type=click.INT, nargs=3,
@click.option('--shape', '-p', type=click.INT, nargs=3,
default=None, callback=default_none,
help='shape of the whole volume.')
@click.option('--input-chunk-name', '-i', type=str, default=DEFAULT_CHUNK_NAME,
Expand Down
4 changes: 2 additions & 2 deletions chunkflow/flow/view.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np

from cloudvolume import view, hyperview
from microviewer import view, hyperview
from .base import OperatorBase


Expand All @@ -20,4 +20,4 @@ def __call__(self, chunk, seg=None):
# this is an image
view(chunk)
else:
view(chunk, segmentation=True)
view(chunk, seg=True)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ gputil
traitlets
zarr
scipy
microviewer

0 comments on commit 12f9232

Please sign in to comment.