pymatgen
pymatgen copied to clipboard
BUG FIX: BSDOSPlotter.get_plot
Line 2288
if dos:
change to
if isinstance(dos, CompleteDos): # Dos obj has no structure
The DOS object has no structure property, which causes error if parsing DOS data without projection. This modification allows user to plot BS and TDOS at the same time, while keeping the BS+PDOS plotting not affected.
Cheers.