Skip to content

Commit

Permalink
fix bug in dplr_v2_to_v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiahsinChu committed Dec 10, 2024
1 parent db8f514 commit d505495
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ai2_kit/domain/dplr.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,9 @@ def dplr_v2_to_v3(data_path: str, sel_symbol: list):
sel_ids = np.where(np.isin(symbols, sel_symbol))[0]
n_atoms = len(atype)

raw_data = np.load(fname).reshape([n_frames, len(sel_ids), -1])
raw_data = np.load(fname)
n_frames = raw_data.shape[0]
raw_data = np.reshape(raw_data, [n_frames, len(sel_ids), -1])
n_dim = raw_data.shape[2]

full_data = np.zeros([n_frames, n_atoms, n_dim])
Expand Down

0 comments on commit d505495

Please sign in to comment.