-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add minimal napari requirement for the plugin to be discovered #55
Conversation
Codecov Report
@@ Coverage Diff @@
## main #55 +/- ##
==========================================
- Coverage 92.59% 92.43% -0.17%
==========================================
Files 3 3
Lines 189 185 -4
==========================================
- Hits 175 171 -4
Misses 14 14
Continue to review full report at Codecov.
|
This is now ready for review. The Python 3.7 tests started failing with an error similar to napari/napari#4747 and I realise that |
Not related to this PR, I just started getting this error using this plugin... stack trace
with:
From the I pip uninstalled This actually fixed the problem!
Not sure I see any changes here that explain why this works now, but 🤷 . Changes look good and build is green: 👍 |
Hmmm - when I try opening a Plate I get...
|
Thanks @will-moore, you're right and this matches what I had found in #42 (comment). Specifically testing with the latest napari release,
|
so I don't see an immediate issue with the manifest (upgraded in #42) itself. |
@sbesson Any idea what version of |
I can load plates now, but still not Wells (either with main branch or with ome/ome-zarr-py#209).
|
Tested a few napari versions (
I never get the plugin to be recognized. Recent versions of napari simply do not list it
and older versions list is in
My attempts at validating the plugin after the upgrade to the new plugin engine do not reveal any immediate issues
@jni @DragaDoncila (and other napari developers): any suggestion on how to increase the logging verbosity and understand what causes this regression? or any obvious candidate for the root of this issue? |
Ok so @sbesson I've tracked down a few things:
name: napari-ome-zarr
schema_version: 0.1.0
contributions:
commands:
- id: napari-ome-zarr.get_reader
title: Get Reader
python_name: napari_ome_zarr._reader:napari_get_reader
readers:
- command: napari-ome-zarr.get_reader
filename_patterns:
- "*.zarr"
- "https://*.zarr/"
accepts_directories: true
I hope this helps, but please don't hesitate to ping me if there's any further issues! |
Many thanks for detailed trackdown @DragaDoncila. Somehow I had missed the failing command were using trailing slash. @will-moore I have pushed an extra commit to support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally 👍 for the drop of python 3.7 (coming in Zarr anyway soon), the addition of the *.zarr/
pattern, and the limiting of napari versions (though perhaps that's a minor bump in case someone desperately needs an updated plugin for an older version?)
tox.ini
Outdated
@@ -1,12 +1,13 @@ | |||
# For more information about tox, see https://tox.readthedocs.io/en/latest/ | |||
[tox] | |||
envlist = py{37,38,39}-{linux,macos,windows} | |||
envlist = py{37,38,39,310}-{linux,macos,windows} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should 37
be dropped here?
6121d50 should drop Python 3.7. On minor vs patch no strong opinion either way but my understanding is that the migration to |
Ah, so the original 0.5 bump essentially had this requirement it just wasn't documented. Check. |
Just confirmed my statement was correct with a test environment using napari 0.4.12 with napari-ome-zarr 0.5.0
|
So, this means that for HCS Wells, e.g. E.g. as in ome/ome-zarr-py#209 |
If you want to support opening subgroups, you could always do |
See #42 (comment)
While this plugin does not directly consume
napari
APIs, the plugin engine mechanism requires a minimal version of upstreamnapari
. This proposes to use the standard Python packaging markup to capture this minimal requirement.Proposed tag:
0.5.1