Skip to content

adding radd dunder method to Volumetric data + test_outputs#4417

Merged
shyuep merged 4 commits intomaterialsproject:masterfrom
wladerer:raddForDosAndVolumetric
May 28, 2025
Merged

adding radd dunder method to Volumetric data + test_outputs#4417
shyuep merged 4 commits intomaterialsproject:masterfrom
wladerer:raddForDosAndVolumetric

Conversation

@wladerer
Copy link
Contributor

Summary

Minor changes:

  • Added __radd__ method to VolumetricData to avoid errors associated with operations like sum([chgcar1, chgcar2, ... etc] )
  • Added test in test_outputs.py to check if method works

All tests passing
125 passed, 9 warnings in 69.04s (0:01:09)

@wladerer wladerer requested review from mkhorton and shyuep as code owners May 23, 2025 23:06
@shyuep shyuep merged commit 57d7f57 into materialsproject:master May 28, 2025
43 checks passed
@shyuep
Copy link
Member

shyuep commented May 28, 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