Dear Expert

I am facing the following error:

ValueError: x and y must have same first dimension, but have shapes (8786,) and (600,)

I solved the like this : # make list of energies

energies = numpy.linspace(-2,2,8786)*eV

is this correct?

I have checked the output which shows dos and energies and have same values and I tried all the possible path but still couldn't able to solve it . Anyone help me out