Skip to content

Commit 0e0003d

Browse files
author
root
committed
fix bug in band
1 parent 0d5ef61 commit 0e0003d

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/abacusagent/modules/band.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -379,15 +379,13 @@ def abacus_cal_band(abacus_inputs_path: Path,
379379
"message": "The band is calculated using PYATB after SCF calculation using ABACUS"}
380380

381381
elif mode == 'nscf':
382-
modified_params = {'calculation': 'nscf',
383-
'init_chg': 'file',
384-
'out_band': 1,
385-
'symmetry': 0}
386-
remove_params = ['kspacing']
387-
modified_input = abacus_modify_input(work_path,
388-
extra_input = modified_params,
389-
remove_input = remove_params)
390-
382+
input_params["calculation"] = "nscf"
383+
input_params["init_chg"] = "file"
384+
input_params["out_band"] = 1
385+
input_params["symmetry"] = 0
386+
input_params['kspacing'] = None
387+
WriteInput(input_params, os.path.join(work_path, "INPUT"))
388+
391389
# Prepare line-mode KPT file
392390
kpt_file = os.path.join(work_path, input_params.get('kpt_file', 'KPT'))
393391
shutil.copy(band_kpt_file, kpt_file)

0 commit comments

Comments
 (0)