Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust pp_file as an unnessary parameter in save to abacus/stru (#752)
In case, some one may just save only as a stru file and has no pseudopotential information. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved error handling and messaging for cases where the pseudo potential file is not provided. - Added checks to ensure parameter lengths match the total number of atoms, enhancing robustness. - **New Features** - Introduced a default value for the pseudo potential file parameter, allowing for more flexible function usage. - **Tests** - Added a new test to verify functionality when the pseudo potential file is not specified, ensuring reliable output with minimal parameters. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: root <pxlxingliang> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information