3737 "Pt" : "PAW_PBE Pt 04Feb2005" ,
3838 "Mn" : "PAW_PBE Mn_pv 02Aug2007" ,
3939 "H" : "PAW_PBE H 15Jun2001" ,
40+ "P" : "PAW_PBE P 17Jan2003" , # temporary, need to check
4041}
4142
4243DFT_U_VALUES = {
4647 "O" : 0.0 ,
4748 "Ir" : 0.0 ,
4849 "H" : 0.0 ,
50+ "P" : 0.0 ,
4951}
5052
5153DEFAULT_OH_ZPE_TS_CORRECTION = 0.23 # eV, from Rong and Kolpak, J. Phys. Chem. Lett., 2015
@@ -145,6 +147,11 @@ def parse_args() -> argparse.Namespace:
145147 action = "store_true" ,
146148 help = "Input job ID as the slab name" ,
147149 )
150+ parser .add_argument (
151+ "--input_custom_name" ,
152+ action = "store_true" ,
153+ help = "Input custom name as the slab name" ,
154+ )
148155 parser .add_argument (
149156 "--device" ,
150157 choices = ["cpu" , "cuda" ],
@@ -231,6 +238,7 @@ def main(
231238 aq_compat : bool = False ,
232239 input_slab_name : bool = False ,
233240 input_job_id : bool = False ,
241+ input_custom_name : bool = False ,
234242 neighbor_cutoff : float = 5.0 ,
235243 device : str = "cuda" ,
236244 relax : bool = False ,
@@ -256,6 +264,7 @@ def main(
256264 input_slab_name (bool, optional): Input stoichiometry of the slab as the slab name. Defaults
257265 to False.
258266 input_job_id (bool, optional): Input job ID as the slab name. Defaults to False.
267+ input_custom_name (bool, optional): Input custom name as the slab name. Defaults to False.
259268 neighbor_cutoff (float, optional): cutoff for neighbor calculations. Defaults to 5.0.
260269 device (str, optional): device to use for calculations. Defaults to "cuda".
261270 relax (bool, optional): perform relaxation for the steps. Defaults to False.
@@ -381,6 +390,12 @@ def main(
381390 if hasattr (slab_batch , "props" )
382391 else slab_batch .info .get ("job_id" , None )
383392 )
393+ elif input_custom_name :
394+ slab_name = (
395+ slab_batch .info .get ("custom_name" , None )
396+ if hasattr (slab_batch , "info" ) and slab_batch .info is not None
397+ else slab_batch .props .get ("custom_name" , None )
398+ )
384399 else :
385400 slab_name = None
386401 raw_entry = create_computed_entry (slab_batch , raw_energy , slab_name = slab_name )
@@ -438,6 +453,7 @@ def main(
438453 args .aq_compat ,
439454 args .input_slab_name ,
440455 args .input_job_id ,
456+ args .input_custom_name ,
441457 args .neighbor_cutoff ,
442458 args .device ,
443459 args .relax ,
0 commit comments