Skip to content

Conversation

AsymmetryChou
Copy link
Collaborator

@AsymmetryChou AsymmetryChou commented Sep 23, 2025

fix #276

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes a potential division error by ensuring the interpolation step size nintp is always at least 1, preventing issues when the k-point array is very small.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

# nintp = len(self.eigenstatus["xlist"]) // nkplot
# if nintp == 0:
nintp = self.eigenstatus["xlist"].shape[0] // 25
nintp = max(1 , self.eigenstatus["xlist"].shape[0] // 25)
Copy link
Preview

Copilot AI Sep 23, 2025

Choose a reason for hiding this comment

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

[nitpick] Remove the extra space before the comma in the max function call. It should be max(1, ...) for consistent formatting.

Copilot uses AI. Check for mistakes.

@floatingCatty floatingCatty merged commit 3df7b08 into deepmodeling:main Sep 24, 2025
3 checks passed
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.

Ref_band plot fails when its k-points less than 25
2 participants