File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments