Read charges from lammps dump
If charges are present in the lammps dump file, neither trajectories nor snapshots can be visualized.
The point is that charges are only scalar property, which is read by get_quantity()
.
Thus the charges were returned as [[q1], [q2], ..]
.
This is fixed as well as the test has been added.
The similar MR can be closed after merging this one.
closes !2387 (closed)
Checklist
-
I have read the contribution guidelines. -
Unit tests have been added for any new or changed code, and the test suite passes. Note: Your request will likely not be merged without the appropriate tests. -
"closes #XXXX" is in the body of the MR description to link the related issue, if applicable.
Edited by Vladislav Kochetov