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

Added structure to orbital and density plots. #33

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
=======
History
=======
2023.11.7 -- Added structure to orbital and density plots
* The Dashboard expects 'structure.sdf' in order to display the structure with the
orbital or debsity plots from CUBE files.

2023.3.5 -- Fixed issues with bandstructure and DOS
* The bandstructure and DOS substeps updated to work with changes in the underlying
Expand Down
6 changes: 6 additions & 0 deletions dftbplus_step/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,12 @@ def make_plots(self, data):
shutil.copyfileobj(f_in, f_out)
n_processed += 1
path.unlink()

# Write the structure file
if periodicity == 0:
path = directory / "structure.sdf"
configuration.to_sdf(path)

text += f"Successfully handled {n_processed} density and orbital cube files."

return text