Skip to content

Conversation

@zhyan0603
Copy link
Owner

This pull request introduces several updates and improvements across documentation and scripts, focusing on enhanced file format support, improved plotting consistency, and bug fixes for analysis scripts. The most significant change is the addition of a new script for converting CP2K outputs to an extended XYZ format. Additionally, the documentation and plotting scripts have been updated for clarity and consistency, and minor bugs have been addressed in analysis scripts.

New Features

  • Added a new script cp2k_log2xyz.py for converting CP2K output files (.log) together with structure files (.xyz or .inp) into extended XYZ format, including energy, forces, and virial tensor. The script also generates a detailed log file with conversion statistics and diagnostics.

Documentation Updates

  • Updated README.md to reflect version bump to 1.5.0, revised usage instructions, updated tool and option names, and clarified supported features in the help sections. [1] [2] [3] [4] [5]

Plotting and Output Consistency

  • Standardized distance and force units in plt_dimer.py output files and plots from "Å" and "eV/Å" to "Angstrom" and "eV/Angstrom", and improved plot labeling and file naming conventions. [1] [2] [3]
  • Updated axis labels in plt_force_errors.py to use LaTeX-style formatting for Angstrom units, ensuring consistency across all plots. [1] [2] [3]

Bug Fixes and Analysis Improvements

  • Fixed handling of group-based analysis and improved robustness in SHC processing in plt_hnemd.py and plt_nemd.py, ensuring correct grouping behavior and error handling. [1] [2] [3] [4] [5]
  • Corrected the parsing of time_step in plt_hnemd.py to support floating-point values, improving compatibility with different simulation outputs.

zhyan0603 and others added 22 commits January 5, 2026 20:06
Add CP2K log converter to format conversion tools
Updated script usage instructions for clarity.
Update cp2k_log2xyz.py
Refactor atom and lattice extraction to handle mixed file types and improve error handling.
Updated extract_energy and extract_forces functions to support both old and new log formats. Improved logging and removed unnecessary disclaimer about unsupported formats.
Enhance CP2K-to-extended-XYZ converter with mixed structure support and CP2K 2025+ compatibility
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.

5 participants