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

Bug: Information is lost on Pydantic .model_dump() in TaskDoc #959

Closed
Andrew-S-Rosen opened this issue Mar 2, 2024 · 1 comment
Closed

Comments

@Andrew-S-Rosen
Copy link
Member

Problem

from emmet.core.tasks import TaskDoc
vasp_task_doc=TaskDoc.from_directory('.')
vasp_task_doc.model_dump()["structure_entry"]

The dumped model does not contain the "structure_entry" data even though it is present as an attribute in the Pydantic model.

Proposed Solution

Not immediately sure.

Alternatives

No response

@Andrew-S-Rosen
Copy link
Member Author

Sorry for another false report. I see this is because it's a @propery...

@Andrew-S-Rosen Andrew-S-Rosen closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2024
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

No branches or pull requests

1 participant