Skip to content

Commit

Permalink
Disabling pDOS for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
elinscott committed May 21, 2024
1 parent 1e65d7b commit 9d6293e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/koopmans/workflows/_wannierize.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,19 +239,21 @@ def _run(self):
# Calculate a projected DOS
pseudos = [read_pseudo_file(calc_pw_bands.directory / calc_pw_bands.parameters.pseudo_dir / p) for p in
self.pseudopotentials.values()]
if all([p['header']['number_of_wfc'] > 0 for p in pseudos]):
if all([p['header']['number_of_wfc'] > 0 for p in pseudos]) and False:
calc_dos = self.new_calculator('projwfc', filpdos=self.name)
calc_dos.directory = 'pdos'
calc_dos.pseudopotentials = self.pseudopotentials
calc_dos.spin_polarized = self.parameters.spin_polarized
calc_dos.pseudo_dir = calc_pw_bands.parameters.pseudo_dir
calc_dos.parameters.prefix = calc_pw_bands.parameters.prefix
self.link(calc_pw_bands, calc_pw_bands.parameters.outdir, calc_dos, calc_dos.parameters.outdir)
self.run_calculator(calc_dos)

# Prepare the DOS for plotting
dos = copy.deepcopy(calc_dos.results['dos'])
else:
# Skip if the pseudos don't have the requisite PP_PSWFC blocks
utils.warn('Manually disabling pDOS')
utils.warn('Some of the pseudopotentials do not have PP_PSWFC blocks, which means a projected DOS '
'calculation is not possible. Skipping...')
dos = None
Expand Down

0 comments on commit 9d6293e

Please sign in to comment.