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

re-evalulate magicgui + pydantic #74

Open
chrishavlin opened this issue Aug 15, 2023 · 1 comment
Open

re-evalulate magicgui + pydantic #74

chrishavlin opened this issue Aug 15, 2023 · 1 comment
Labels
code improvement refactoring, rewriting, simplifying

Comments

@chrishavlin
Copy link
Collaborator

latest magicgui includes support for pydantic, might be able to simplify alot of the custom pydantic object traversal happening here.

@chrishavlin chrishavlin added the code improvement refactoring, rewriting, simplifying label Aug 15, 2023
@chrishavlin
Copy link
Collaborator Author

update: magicgui is very close to being able to recursively traverse objects. see https://forum.image.sc/t/building-a-napari-widget-from-a-pydantic-model/90257

Might be able to use that new build_widget function after registering the nested pydantic classes with magicgui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code improvement refactoring, rewriting, simplifying
Projects
None yet
Development

No branches or pull requests

1 participant