You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to save multiple frames from a trajectory, extracting only a selection (with mask) of atoms/residues pt.write_traj('t.pdb',traj,overwrite=True,options='multi',frame_indices=range(0,traj.n_frames,int(traj.n_frames/int(frames))))
This creates a single pdb file without problems.
But when trying to save only a selection of atoms per file, pt.write_traj('t.pdb',traj(mask=(':1-476')),overwrite=True,options='multi',frame_indices=range(0,traj.n_frames,int(traj.n_frames/int(frames))))
it will save all the frames of the simulation, instead of the selection of frames I choose with 'frame_indices'
What could be the problem?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to save multiple frames from a trajectory, extracting only a selection (with mask) of atoms/residues
pt.write_traj('t.pdb',traj,overwrite=True,options='multi',frame_indices=range(0,traj.n_frames,int(traj.n_frames/int(frames))))
This creates a single pdb file without problems.
But when trying to save only a selection of atoms per file,
pt.write_traj('t.pdb',traj(mask=(':1-476')),overwrite=True,options='multi',frame_indices=range(0,traj.n_frames,int(traj.n_frames/int(frames))))
it will save all the frames of the simulation, instead of the selection of frames I choose with 'frame_indices'
What could be the problem?
Thanks!
The text was updated successfully, but these errors were encountered: