Skip to content

Commit

Permalink
Merge pull request #33 from molssi-seamm/dev
Browse files Browse the repository at this point in the history
Added structure to orbital and density plots.
  • Loading branch information
seamm committed Nov 8, 2023
2 parents a989735 + 36b4a16 commit 59fe727
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit 59fe727

Please sign in to comment.