Skip to content

cp2kdata/md format conversion fails with PRINT_LEVEL LOW despite external files (pos, frc, ener) #829

Answered by robinzyb
Yiwei666 asked this question in Q&A
Discussion options

You must be logged in to vote

There is no bug in the code

The folder strucutre is as follows:

.
├── B2O3-frc-1.xyz
├── B2O3-pos-1.xyz
├── B2O3.cell
├── OT.inp
  1. Only *-pos-* and *-frc-* files can be detected. don't forget the -.
  2. move -1.ener file out of folder since it has different frame numbers from -pos-
import os


%set_env CP2KDATA_LOG_LEVEL DEBUG

import dpdata
import numpy as np

cp2kmd_dir = "./01_cp2k/"
cp2kmd_output_name = None

#dp = dpdata.LabeledSystem(cp2kmd_dir, cp2k_output_name=cp2kmd_output_name, fmt="cp2kdata/md")
cells = np.array([[9.402,0,0],
                [0,9.402,0],
                [0,0,9.402]])
dp = dpdata.LabeledSystem(cp2kmd_dir, cp2k_output_name=cp2kmd_output_name, cells=cells, ensemble_type

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Yiwei666
Comment options

@robinzyb
Comment options

@Yiwei666
Comment options

@robinzyb
Comment options

Answer selected by Yiwei666
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants