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

BUG FIX: BSDOSPlotter.get_plot #2913

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

m3lab-zzl
Copy link

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.

Zhilin Zheng and others added 4 commits March 27, 2023 11:44
bandstr = BandStructureSymmLine.from_dict(bandstr_dict)
plt = p.get_plot(bandstr)
band_struct = BandStructureSymmLine.from_dict(band_struct_dict)
plt = plotter.get_plot(band_struct)
Copy link
Member

@janosh janosh Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a line here that calls plotter.get_plot() with a Dos object? Just to cover this execution branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix PRs needs testing PRs that are not ready to merge due to lacking tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants