-
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
Failed saving animation when using napari.utils.DirectLabelColormap #226
Comments
Here is the error (sorry it is really long)
|
Might be caused by the recent napari/napari#7025... |
no, based on this SO question it's because there is a numba typed dict in the class, so the class cannot be pickled. I think the solution would be to add a There might be a user-space solution here (check if it's a DirectLabelColormap, replace it with a dict — thanks to napari/napari#7025, actually. 😂), so I'll leave this issue here and make a more targeted one in napari. Thanks @manerotoni for the report! 🙏 |
I think this came up with the PRs fixing some of the state/properties comparisons. |
You might not want to interpolate the colors, (in fact, in the case of colormapped values, you certainly don't want to interpolate in color space), but that can be done by setting interpolation=None. I can see it being useful to change the colormap in the middle of an animation, so checkpointing a colormap is certainly a necessary feature. |
I think that |
Hello,
with napari-animation and I encountered a reproducible error when using
DirectLabelColormap
. Such a map is needed as I do class-labelling and it allows easy configuration and consistency in the colors. If I modify the standardCyclicLabelColormap
theanimate
command works properly.I add two small code snipptes. The first save the data correctly. In the second example the
animate
command fails.The text was updated successfully, but these errors were encountered: