with open(os.path.join(output_path, outfile), 'w+') as f:
f.write("\n######################\n")
f.write("Trajectory info")
f.write("\n######################\n")
f.write("Number of atoms in system: {}\n".format(u.trajectory.n_atoms))
f.write("Number of frames in trajectory: {}\n".format(u.trajectory.n_frames))
f.write("Trajectory timestep (The time difference between frames in picosecond): {}\n".format(u.trajectory.dt))
f.write('Total time of trajectory: {0:8.3f} ps\n'.format(u.trajectory.totaltime))
--
You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mdnalysis-discus...@googlegroups.com.
To post to this group, send email to mdnalysis-...@googlegroups.com.
Visit this group at https://groups.google.com/group/mdnalysis-discussion.
For more options, visit https://groups.google.com/d/optout.