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

[bugfix] coerce as_layer_data_tuple from DeprecatingDict to dict for internal use #229

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

psobolewskiPhD
Copy link
Member

Closes: #228

As of napari/napari#6976 (0.5.0) as_layer_data_tuple doesn't return a dict anymore, but a _DeprecatingDict. This means that the checks that use isinstance(foo, dict) in ViewerState and in interpolation.utils fail.

This PR coerces the output of as_layer_data_tuple in ViewerState to avoid this issue. The alternative would be to change the checks for dict to MutableMapping or such.

See: https://napari.zulipchat.com/#narrow/stream/212875-general/topic/DeprecatingDict.20not.20accepted.20in.20LayerDataTuple

@psobolewskiPhD
Copy link
Member Author

psobolewskiPhD commented Sep 5, 2024

Test fail is due to missing test dependency. I'm trying to fix it here: #230

Edit: new fails are due to another napari change as far as I can tell: #231

@alisterburt
Copy link
Collaborator

Remaining issues fixed by @Czaki - thanks both of you for sorting this so quickly!

@alisterburt alisterburt merged commit 6592f05 into napari:main Sep 6, 2024
15 checks passed
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

Successfully merging this pull request may close these issues.

interpolating plane position doesn't work in napari 0.5.X
2 participants