Skip to content

Update outputs.py#13

Open
hisvvhtek wants to merge 1 commit intomaterialsproject:mainfrom
hisvvhtek:main
Open

Update outputs.py#13
hisvvhtek wants to merge 1 commit intomaterialsproject:mainfrom
hisvvhtek:main

Conversation

@hisvvhtek
Copy link
Copy Markdown

the original io/vasp/outputs.py line 5873 will lead to repeated computation of cder because the property cder is a method with @Property. So direct computation will make it faster if we should go through many cders matrices with this function, just like my change

the original io/vasp/outputs.py line 5873 will lead to repeated computation of cder because the property cder is a method with @Property. So direct computation will make it faster if we should go through many cders matrices with this function, just like my change
@hisvvhtek hisvvhtek requested a review from shyuep as a code owner March 31, 2026 11:03
a float value
"""
return self.cder[band_i, band_j, kpoint, spin, cart_dir]
return self.cder_real[band_i, band_j, kpoint, spin, cart_dir] + 1j * cder_imag[band_i, band_j, kpoint, spin, cart_dir]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think there is an error? Shouldn't it be self.cder_imag?

@hisvvhtek
Copy link
Copy Markdown
Author

hisvvhtek commented Apr 16, 2026 via email

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