Closed sofroniewn closed 2 years ago
In this case, the problem is the function bound to the manifest needs to look something like this:
# in napari.yml :
# python_name: napari_molecule_reader.molecule_reader:get_reader
def get_reader(_path):
return read_molecule
It's not intuitive. The reason it's like this is a hold-over from the way readers worked in the previous plugin engine.
See here for the spec.
@nclack are we going to be able to support more direct calls at some point in the future? (i.e. not the function that returns a function, but just the function that does the reading)
Definitely would be nicer to do it directly, especially now that we don't need to check for extension in the plugin itself!
support more direct calls at some point in the future
would love to!
closed by v0.1.1.
I'm getting the following error on main