Closed Zhang-Zhiyuan-zzy closed 11 months ago
@njzjz In certain situations, it is possible that we may only require the molecular conformer without the need to align the atoms' coordinate orientation with their force vectors. In my particular case, all I need is the molecular conformers and the corresponding energies. Would it be feasible to incorporate a non-default flag to allow for this less stringent operation?
This needs more discussion. Currently in dpdata.LabeledSystem, force is required. dpdata was initially designed for machine learning potentials training, where force is necessary. It's unclear if reading data without force will benefit users. Besides, it's not hard to let Gaussian print input orientation using geom=printinputorient
keyword.
Thanks for your response, I get it.
At present, the plugin reading gaussian log file identifies the coords context by title: "Z-Matrix orientation:" and "Input orientation:". In general, it works fine. However, the log file, sometimes, might only record the "Standard orientation:" coords. In the case, the coords can't be localized by the current plugin and will raise the UnboundLocalError.
The following is the bug-raised code:
The error message:
The system and envoriments:
This error can be resolved by making a little modification to a portion of the code: 1) Add a new conditional branch to recognize "Standard orientation:" 2) read the Standard coordinates when meet the flag == 16
The modified code like the following (The modified have been marked by '# TODO: Modified'). This modification would not make changes for the general case, where the "input orientation:" or "Z-Matrix orientation:" is in the text, because of the "Input orientation:" and "Z-Matrix orientation:" are always on the above of "Standard orientation:"
The following modification has been tested on my machine and works fine in both the general case and the above bug-raised case.