Commit dac79755 authored by eric pellegrini's avatar eric pellegrini
Browse files

bug fix when reading atoms trajectory in the case of a single atom

parent 4672d8df
......@@ -144,7 +144,7 @@ def read_atoms_trajectory(trajectory, atoms, first, last=None, step=1, variable=
serie = numpy.zeros((nFrames,3), dtype=dtype)
if weights is None:
if weights is None or len(atoms) == 1:
weights = [1.0]*len(atoms)
for i,at in enumerate(atoms):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment