Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range #1595

Open
xwxwshi opened this issue Jul 18, 2024 · 1 comment
Open

IndexError: list index out of range #1595

xwxwshi opened this issue Jul 18, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@xwxwshi
Copy link

xwxwshi commented Jul 18, 2024

Summary

Running aimd (vasp) in the init step of DP-GEN gives an error with the message IndexError: list index out of range.

DP-GEN Version

dpgen:0.12.0

Platform, Python Version, etc

No response

Details

Traceback (most recent call last):
File "/opt/mamba/bin/dpgen", line 8, in
sys.exit(main())
File "/opt/mamba/lib/python3.10/site-packages/dpgen/main.py", line 255, in main
args.func(args)
File "/opt/mamba/lib/python3.10/site-packages/dpgen/data/gen.py", line 1581, in gen_init_bulk
coll_vasp_md(jdata)
File "/opt/mamba/lib/python3.10/site-packages/dpgen/data/gen.py", line 1107, in coll_vasp_md
_sys = dpdata.LabeledSystem(oo, type_map=type_map)
File "/opt/mamba/lib/python3.10/site-packages/dpdata/system.py", line 183, in init
self.from_fmt(
File "/opt/mamba/lib/python3.10/site-packages/dpdata/system.py", line 220, in from_fmt
return self.from_fmt_obj(load_format(fmt), file_name, **kwargs)
File "/opt/mamba/lib/python3.10/site-packages/dpdata/system.py", line 1113, in from_fmt_obj
data = fmtobj.from_labeled_system(file_name, **kwargs)
File "/opt/mamba/lib/python3.10/site-packages/dpdata/plugins/vasp.py", line 94, in from_labeled_system
data = uniq_atom_names(data)
File "/opt/mamba/lib/python3.10/site-packages/dpdata/utils.py", line 97, in uniq_atom_names
data["atom_types"] = np.array([uidxmap[jj] for jj in tmp_type], dtype=int)
File "/opt/mamba/lib/python3.10/site-packages/dpdata/utils.py", line 97, in
data["atom_types"] = np.array([uidxmap[jj] for jj in tmp_type], dtype=int)
IndexError: list index out of range

@njzjz
Copy link
Member

njzjz commented Jul 18, 2024

Duplicate of deepmodeling/dpdata#359

@njzjz njzjz marked this as a duplicate of deepmodeling/dpdata#359 Jul 18, 2024
@njzjz njzjz added the duplicate This issue or pull request already exists label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants