ASE enhance#121
Conversation
amcadmus
left a comment
There was a problem hiding this comment.
'energies', 'forces' and 'virials' are keys supposed to appear in LabeledSystem rather than System. Please check LabeledSystem::sub_system at
Line 1342 in 931c606
I would suggest implementing a to_ase_structure method in LabeledSystem
I did not notice that at first, but your suggestion makes sense and is in line with class hierarchy logic. I have reimplemented |
Codecov Report
@@ Coverage Diff @@
## devel #121 +/- ##
==========================================
- Coverage 84.98% 84.71% -0.27%
==========================================
Files 28 28
Lines 3256 3272 +16
==========================================
+ Hits 2767 2772 +5
- Misses 489 500 +11
Continue to review full report at Codecov.
|
Add the ability to export energy, forces and virials to ASE atoms. It is implemented as SinglePointCalculator calculator which was designed to only remember results not to do any computations.
Now these methods can be used on exported Atoms object
The try except block in
System.to_ase_structuremethod has been removed as it only catches the import error and the re-raises it and thus it provides no additional security.