Skip to content

Avoid dict mutation in VaspInputSet.structure setter#4520

Merged
shyuep merged 1 commit intomaterialsproject:masterfrom
janosh:avoid-VaspInputSet-_config_dict-potcar-mutation
Oct 16, 2025
Merged

Avoid dict mutation in VaspInputSet.structure setter#4520
shyuep merged 1 commit intomaterialsproject:masterfrom
janosh:avoid-VaspInputSet-_config_dict-potcar-mutation

Conversation

@janosh
Copy link
Member

@janosh janosh commented Oct 16, 2025

_config_dict["POTCAR"] was being modified in-place during Yb PSP warning check
this caused user_potcar_settings to be permanently merged into _config_dict["POTCAR"]. no known downstream repercussions but could in principle lead to incorrect POTCAR settings in subsequent operations

`_config_dict["POTCAR"]` was being modified in-place during Yb PSP warning check
this caused `user_potcar_settings` to be permanently merged into  `_config_dict["POTCAR"]`, might lead to incorrect POTCAR settings in subsequent operations
@shyuep shyuep merged commit 0c5ead0 into materialsproject:master Oct 16, 2025
43 of 44 checks passed
@shyuep
Copy link
Member

shyuep commented Oct 16, 2025

Thanks.

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.

2 participants