Skip to content

ValueError: not enough values to unpack #17

@Makarov3821

Description

@Makarov3821

Hi, I'm trying to output dos graph, but I got an error:

Traceback (most recent call last):
File "/home/zyl/.local/bin/vasprun", line 105, in
test.plot_dos(styles=options.dosplot, filename=options.figname, xlim=lim, smear=options.smear)
File "/home/zyl/.local/lib/python3.10/site-packages/vasprun/init.py", line 857, in plot_dos
mydos, labels = self.get_dos(rows, style)
File "/home/zyl/.local/lib/python3.10/site-packages/vasprun/init.py", line 785, in get_dos
a, b, c, d = np.shape(pdos)
ValueError: not enough values to unpack (expected 4, got 1)

The version is the latest 1.0.4, and my command is
vasprun -v vasprun.xml -d t -n dos-test.png
I'll attach my vasprun.xml below.
vasprun.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions