Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
pymatgen.io.pwmat
module (#3512)
* Add pymatgen.io.pwmat module * rm unitest inside pymatgen.io.pwmat dir * remove try,except expression: remove format expression: remove format expression: codespell * Add pwmat fmt within Structure.from_file() and Structure.from_str() * Remove abtractclass LineLocaterBase * Add output file of PWmat: Report, OUT.FERMI * Add output file of PWmat: DOS.totalspin, DOS.spinup, DOS.spindown * Rename part to part_upper to impove code quality to pass automatically test * add OutFermi, Report, Dosspin object to __init__.py in pwmat * Add input file named gen.kpt * Add high_symmetry_point * Add test for all new features * snake case variables, fix doc strings and return types * Revise comments and compress the test file. to pass test * Revise annotation again * Further modify the annotations * Further modify the annotations * Fix mispelling according to codespell * Modify annotation according to mypy * Modify annotation of filename: str -> PathLike * Add pwmat in FileFormats * Change the type annotation of filename to PathLike * Change type annotation: np.array -> np.ndarray * Utilize mypy check locally to pass 21 tests for pymatgen.io.pwmat * fix typos * del tests/io/pwmat/__init__.py * more informative unrecognized file extension error in Structure.from_file() * fnmatch compressed *.config* or *.pwmat* files * compress test files * snake_case dict keys and method names * don't write tmp test files to git repo * re.escape err msg * drop filename from expected err msg * Add test for Structure pwmat IO format * Add test for Structure pwmat IO format * Try to pass test in win * Decompress the test file and reduce the number of lines. * Add test for Structure.from_file() and Structure.to() in pwmat format * improve test_inputs.py assertions --------- Signed-off-by: LiuHanyu <41718895+lhycms@users.noreply.github.com> Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
- Loading branch information