Skip to content

Commit e20985d

Browse files
committed
update
1 parent baac3e0 commit e20985d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

examples/local_abacus_scf/public/INPUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ smearing_method gaussian
1616
smearing_sigma 0.002
1717
lspinorb 0 #后续考虑加上 SOC
1818
out_band 1 # output band structure
19-
out_chg -1 # output real space charge
19+
out_chg 1 # output real space charge
2020
out_wfc_lcao 0 # output the wavefunction coefficients, Availability: Numerical atomic orbital basis
2121
out_mat_hs2 True # output ham and overlap matrix
2222
out_dm1 1 # output density matrix, out_dm with k-point algorithm is not implemented yet.

src/dprep/post_analysis_tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,9 @@ def _extract_band_data(job_dir_path: Path, target_band_file: str = "BANDS_1.dat"
581581
post_instance = PostBand([job_dir]) # May not need path if methods are static
582582

583583
input_param = ReadInput(str(job_dir_path / inputfile_name))
584-
kpt_reader_instance = ReadKpt(str(job_dir_path / kptfile_name)) # Try instantiation
584+
kptfile_name = os.path.join(job_dir_path, kptfile_name)
585+
kpt_reader_instance = ReadKpt(kptfile_name) # Try instantiation
586+
585587
# Check if result is directly available or needs method call (adapt as needed)
586588
if hasattr(kpt_reader_instance, 'kpt_data'): # Example attribute access
587589
kpt_data = kpt_reader_instance.kpt_data

0 commit comments

Comments
 (0)