-
Notifications
You must be signed in to change notification settings - Fork 27
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
Animation crashes if hidden Labels
layer present in viewer
#184
Comments
Labels
layer present in viewerLabels
layer present in viewer
Hey @bentaculum Thanks for the nice bug report! I haven't had a chance to take a look yet, I want to help but to set expectations I just moved to a new continent and started a new job so am pretty low bandwidth right now. If you're capable of finding the bug/submitting a pull request I'm very happy to get a fix merged but not sure when I can take a look myself right now. Many thanks! Alister |
Could you post full output of Anyhow I have a fix PR (#181) for labels (and other layer types) and with that branch I can replicate the issue. |
There was an issue with #181 that was spotted by a user on image.sc (https://forum.image.sc/t/issue-saving-animations-in-napari-animation/88868/8?u=psobolewskiphd). After fixing, I can no longer reproduce this issue, so I think #181 solves this! 🎉 |
Hi @psobolewskiPhD, thanks for looking into this. Here's my
|
…alue comparisons (#181) Closes: #180 Closes: #184 This adds a new function to utils.py for carrying out the comparison of layer_attribute. In particular if an attribute is a dict then the function recurses using key/value pairs. This is needed for example for Labels layer `color` which is a dict of np.array. But other layers also have nested dicts (e.g. Surfaces) Additionally, I implement two tests that use all napari layers. The first compares attributes between viewer_state and the actual layer and the second checks whether the animation has frames. These tests fail in main but pass with the fix mentioned above.
Thanks a lot for developing this nice plugin :)
I just noticed the following: If there is a hidden
Labels
layer present in the viewer,Animation.animate
crashes while trying to update some layer thumbnail. This looks like a bug to me, it didn't occur to me that I'm not allowed to have some hidden layers floating around when creating an animation.Here is a minimal example. The first animation is written fine, after adding the
Labels
layer withvisible=False
I get the error below.Error message:
python: 3.10.12
napari: 0.4.18
napari-animation: 0.0.7
The text was updated successfully, but these errors were encountered: