Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imshow can't find any plugins without initially calling use_plugin #1

Open
lebedov opened this issue Jun 8, 2010 · 5 comments
Open

Comments

@lebedov
Copy link

lebedov commented Jun 8, 2010

Using the latest revision of scikits.image 0.3dev as of the submission date of this issue, scikits.image.io.imshow() can't find any plugins when I attempt to use it to display an ndarray without initially running use_plugin() to activate a particular plugin. Is this expected behavior? The existence of a plugin argument in the imshow function seems to imply that one shouldn't need to explicitly call use_plugin() before imshow().

@stefanv
Copy link
Owner

stefanv commented Jun 8, 2010

I added imshow to the PIL plugin. Please review

http://github.com/stefanv/scikits.image/tree/io

before I integrate it into the master branch.

@lebedov
Copy link
Author

lebedov commented Jun 8, 2010

It appears to work fine.

@lebedov
Copy link
Author

lebedov commented Jun 9, 2010

My question involving the need to initially run use_plugin() before being able use something other than the default plugin still stands, though; without doing so,
scikits.image.io._plugins.plugin.plugin_store only contains the null and pil plugins. Shouldn't that dictionary contain all of the existing plugins by default?

@stefanv
Copy link
Owner

stefanv commented Jun 9, 2010

Some plugins are not safe to load by default (for example, the Qt and Gtk plugins cannot be loaded at the same time). I can update the docstring to say that at least the PIL plugin will be tried by default.

@lebedov
Copy link
Author

lebedov commented Jun 9, 2010

Sure, although it might also be useful to make note of the fact that certain plugins cannot be loaded simultaneously (e.g., perhaps in the documentation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants