Possible bug? dpdata.LabeledSystem.to() method unable to dump selected frame_idx #769
-
| Dear community, 
 Now I want to dump only the last frame into deepmd format. However, when I followed these instructions, i.e., to add frame_idx=-1 kwarg in dpdata.LabeledSystem.to() method, dpdata still dumped all 63 frames: 
 gave me: 
 while using command: worked just the way I wanted: 
 (1, 312) Since the original documentation did not explicitly tell the expected output of LabeledSystem.to(), I'm not sure if the behaviors I had can be defined as a bug. Can someone help explaining this issue? If it can be identified as a bug, I can create a formal issue to be fixed. Appreciated! | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| 
 | 
Beta Was this translation helpful? Give feedback.
-
| I see. Appreciate that. | 
Beta Was this translation helpful? Give feedback.
frame_idxis not an argument ofto. It's the argument for specific formats such aslammps/lmpas given in the example.