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

add additional fields as kwargs to PhononBSDOSDoc #910

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

naik-aakash
Copy link
Contributor

Closes #904

Changes

  1. Add additional_fields as an acceptable kwargs to generate_frequencies_eigenvectors_kwargs (users can add metadata to the output taskdoc from here)

Open question

  1. Should we rename the generate_frequencies_eigenvectors_kwargs to task_document_kwargs? This will help us use the powerups to add the metadata, but it would be a big change to the current workflow implementation. What do you think?

@@ -514,6 +515,8 @@ def from_forces_born(
},
)

return doc.model_copy(update=additional_fields)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering if that isn't very slow. Is there no other way to update the document?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check again. I did not find any other way to do it so far . I also had looked in emmet for vasp doc

https://github.com/materialsproject/emmet/blob/fdbcae26e0a00c22186bfdb2899c4cc929ba7125/emmet-core/emmet/core/tasks.py#L604.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see

@utf
Copy link
Member

utf commented Jul 18, 2024

Thanks!

@utf utf merged commit e945136 into materialsproject:main Jul 18, 2024
6 checks passed
BryantLi-BLI pushed a commit to BryantLi-BLI/atomate2 that referenced this pull request Jul 29, 2024
@utf utf added the enhancement Improvements to existing features label Aug 20, 2024
hrushikesh-s pushed a commit to hrushikesh-s/atomate2 that referenced this pull request Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: add_metadata_to_flow poweup does not work on PhononBSDOSDoc
3 participants