Skip to content

Commit

Permalink
npe2 conversion (napari plugin engine 2) (#11)
Browse files Browse the repository at this point in the history
* Result of 'npe2 convert' command

* This plugin is associated with .tiff & .tif file extensions

* Remove napari-plugin-engine 1 (old version) cruft
  • Loading branch information
GenevieveBuckley authored Feb 14, 2024
1 parent d97830e commit 8c4915b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
13 changes: 13 additions & 0 deletions napari_tiff/napari.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: napari-tiff
schema_version: 0.2.0
contributions:
commands:
- id: napari-tiff.get_reader
title: Get Reader
python_name: napari_tiff.napari_tiff_reader:napari_get_reader
readers:
- command: napari-tiff.get_reader
filename_patterns:
- '*.tiff'
- '*.tif'
accepts_directories: true
2 changes: 0 additions & 2 deletions napari_tiff/napari_tiff_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from typing import List, Optional, Union, Any, Tuple, Dict, Callable

import numpy
from napari_plugin_engine import napari_hook_implementation
from tifffile import TiffFile, TiffSequence, TIFF
from vispy.color import Colormap

Expand All @@ -21,7 +20,6 @@
ReaderFunction = Callable[[PathLike], List[LayerData]]


@napari_hook_implementation
def napari_get_reader(path: PathLike) -> Optional[ReaderFunction]:
"""Implements napari_get_reader hook specification.
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
imagecodecs
napari-plugin-engine>=0.1.4
numpy
tifffile>=2020.5.7
vispy

0 comments on commit 8c4915b

Please sign in to comment.