Open blokhin opened 3 months ago
This exception is caused by the presence of the SCELPHONO keyword in the calculation, because the phonon calculation creates a supercell that has more atoms than the original cell, here is an example of a trajectory for which the exception is thrown:
In[14]: pars.stdout_parser.get_trajectory()
Out[14]:
[Atoms(symbols='Li2Pt', pbc=True, cell=[[2.923816996254444, 2.923816996254444, 0.0], [-3.994008292900281, 1.0701912966458385, 0.0], [0.0, 0.0, 2.67463495]]),
Atoms(symbols='Li2PtLi5Pt2LiPt', pbc=True, cell=[[2.923816996254444, 2.923816996254444, 0.0], [-5.064199595131991, 5.064199595131991, 0.0], [0.0, 0.0, 5.3492699]])
To get rid of it, we need to add a fallback that is triggered when phonon calculation is specified in the node parameters.
@blokhin Would it be ok if the parser just threw a warning like this in the logger, or should it completly ignore trajectories in phonon calculations? That seems like a lot of unnecessary information.
Warning: Caught ValueError for node with label 'Li2Pt/191: Phonon frequencies [1]': Symbol lists have to be the same for all of the supplied structures
WARNING:aiida.parser.CrystalParser:Caught ValueError for node with label 'Li2Pt/191: Phonon frequencies [1]': Symbol lists have to be the same for all of the supplied structures