ENH: Catch trajectory attribute error
Split from !225 (closed).
Old calculators (e.g. lammpsrun), which are not derived from Calculator, may not have the attribute calculation_required. As a consequence no energies or forces will be written Trajectory files, even if they are available.
This more of a temporary band-aid. I have done some additional work (morten-j-nagel/ase@a41b90d4...3fcdfd87) on lammpsrun, but these changes are very much work in progress. The exciting
and fleur
calculators are not derived from Calculator
and do not have a calculation_required
attribute, so it might also help there.