NPBentley / CASTEP_bands

A Python module for performing band structure manipulation and generating publication quality plots.
MIT License
1 stars 1 forks source link

Conflict of Optados .pdos.dat file with plotting suborbitals #1

Open NPBentley opened 9 months ago

NPBentley commented 9 months ago

Currently functionality is being worked on in order to plots the dos/bands of sub orbitals (i.e. Px, Dxy or Fxxx).

It is also been suggested one should have the option to read the pdos from the optados ".pdos.dat" file.

However, there is a potential conflict here as, unlike the ".pdos_bin" castep file, the ".pdos.dat" file doesn't separate the dos up by suborbital.

Inker2401 commented 1 month ago

The ability to read the pdos.dat has been merged in pull request #12

All optaDOS functionality is currently in optados_utils.py. We need to have a think about how this functionality can be adapted for sub-orbitals and .pdos_bin as the actual plotting will be the same, just the file read will be different.

.pdos_bin is a binary file from CASTEP we already have code in Spectral.py to read it. I think we 'just' need to make it either a module level function or more likely store the information within the Spectral' class such that it will then be available withinoptados_utils.py. One would then just need to set up the appropriate labels etc inDOSdata` when initialising the class and then everything else should be fine.