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

Removed savedb | Fixed error in bandstructure plotting #48

Merged
merged 6 commits into from
Sep 4, 2024

Conversation

palful
Copy link
Member

@palful palful commented Sep 4, 2024

With this patch Issue #6 was finally addressed, merging YamboSaveDB into YamboElectronsDB.
All the code was updated to reflect this change as YamboSaveDB was removed (several other small fixes and updates where introduced, including Issue #30 ). I also updated the tutorial files in order to debug and test the changes.

Secondly, there was a bug in the band structure plots, which was probably the cause of the original problem in #28 . The Path object is defined by the user in rlu, and the SKW interpolator also needs rlu coordinates. These were also passed to the BandStructure object despite the fact that the correct distances are preserved by cc coordinates. By converting the kpoints on the path and the Path object in cc before passing everything to Bandstructure, the problem of the rectangular lattices is solved. For hexagonal lattices it did not appear since rlu and cc coordinates give rise to similar k-ratios.

Fulvio Paleari added 6 commits August 30, 2024 17:19
Updating with new changes from main repo
- Removed reference to SaveDB from the whole code
- Introduced new ElectronsDB database which is a merge of SaveDB and the
  old ElectronsDB
- Extracted functions expand_kpoints and get_path to a separate
  yambopy.kpoints submodule and removed all their duplicates around the
code
- Updated and patched all the classes and functions to reflect these
  changes
- Updated and tested existing tutorials
- Streamlined YamboExcitonDB.interpolate function, now it is more
  understandable
- Fixed the get_path/bandstructure bug (using reduced coordinates
  instead of Cartesian for the plots) also in YamboExcitonDB (previously
it was only fixed in YamboQPDB)
- Increased version number to 0.4
  generic DOS/spectral function calculator of the expression: D(w)=C\sum\_i w\_i |M\_i|^2 \delta(w-dE\_i; broad)
- Added final fixes to complete the retirement of saveDB
@palful
Copy link
Member Author

palful commented Sep 4, 2024

I also added a new function, get_spectra, in yambopy.plot which constructs a generic DOS-like expression and can be used to quickly plot DOS, JDOS, IP abs., BSE abs. (resonant), phonon DOS, Eliashberg function, etc.

@palful
Copy link
Member Author

palful commented Sep 4, 2024

I also created a new file yambopy.kpoints with the only copy of the functions expand_kpoints and get_path, extracting them from the respective classes.

Previously, expand_kpoints appeared in YamboLatticeDB, YamboSaveDB, rotate_em1s and refine_gkkp. Now these classes use yambopy.kpoints. Also get_path appeared multiple times (YamboLatticeDB, YamboSaveDB, yambopy.lattice) and again has been streamlined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant