100 def register(self, order: float, kind: PluginType) -> Callable:
101 """Register a plugin which is to be run when producing a
107 This determines in what order plugins will be run. For
108 example, if plugin A specifies order 2, and plugin B
109 specifies order 1, and both are the same ``kind`` of
110 plugin type, plugin B will be run before plugin A.
112 This specifies what data the registered plugin expects
113 to run on, a channel, a partial image, or a full mosaic.
118 func: Callable[[NDArray, NDArray, Mapping[str, int], PipelineTaskConfig], NDArray],
119 ) -> Callable[[NDArray, NDArray, Mapping[str, int], PipelineTaskConfig], NDArray]:
121 case PluginType.PARTIAL:
123 case PluginType.FULL:
125 case PluginType.CHANNEL: