diff --git a/chunkflow/flow/load_pngs.py b/chunkflow/flow/load_pngs.py index cc3e573..0b5f726 100644 --- a/chunkflow/flow/load_pngs.py +++ b/chunkflow/flow/load_pngs.py @@ -16,6 +16,7 @@ def load_image(file_name: str): # img = np.expand_dims(img, axis=0) return img + def load_png_images( path_prefix: str, bbox: BoundingBox = None, @@ -59,7 +60,7 @@ def load_png_images( if os.path.exists(file_name): img = load_image(file_name) img = img.astype(dtype=dtype) - chunk.array[z_offset, :, :] = img + chunk.array[z_offset, :, :] = img[bbox.start[1]:bbox.stop[1], bbox.start[2]:bbox.stop[2]] else: print(f'image file do not exist: {file_name}') diff --git a/conftest.py b/conftest.py new file mode 100644 index 0000000..0ac4a90 --- /dev/null +++ b/conftest.py @@ -0,0 +1 @@ +pytest_plugins = ['chunkflow']