Skip to content

Commit a3c4d07

Browse files
committed
feat: Switched to open() class method
1 parent 1c328eb commit a3c4d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/napari_mlarray/_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ def reader_function(path):
7272
# handle both a string and a list of strings
7373
paths = [path] if isinstance(path, str) else path
7474
# load all files into array
75-
mlarrays = [MLArray().open(_path) for _path in paths]
75+
mlarrays = [MLArray.open(_path) for _path in paths]
7676
layer_data = [(mlarray, {"affine": mlarray.affine, "metadata": mlarray.meta.to_dict()}, "labels" if mlarray.meta.is_seg == True else "image") for mlarray in mlarrays]
7777
return layer_data

0 commit comments

Comments
 (0)