@@ -1477,7 +1477,8 @@ def get_reference_energies(adsorbates_path,nslab,check_finished=False):
14771477
14781478 return c_ref ,o_ref ,h_ref ,n_ref ,finished_atoms
14791479
1480- def postprocess (path ,metal ,facet ,sites ,site_adjacency ,repeats ,slab_path = None ,check_finished = False ,get_all_configs = False ):
1480+ def postprocess (path ,metal ,facet ,sites ,site_adjacency ,repeats ,slab_path = None ,check_finished = False ,get_all_configs = False ,
1481+ allowed_structure_site_structures = None ):
14811482 """
14821483 Postprocess Pynta run into GasConfiguration/SurfaceConfiguration/Kinetics objects
14831484 Args:
@@ -1507,6 +1508,10 @@ def postprocess(path,metal,facet,sites,site_adjacency,repeats,slab_path=None,che
15071508
15081509 c_ref ,o_ref ,h_ref ,n_ref ,finished_atoms = get_reference_energies (os .path .join (path ,"Adsorbates" ),nslab ,check_finished = check_finished )
15091510
1511+ if allowed_structure_site_structures is None :
1512+ allowed_structure_site_structures = generate_allowed_structure_site_structures (os .path .join (path ,"Adsorbates" ),sites ,
1513+ site_adjacency ,nslab ,max_dist = np .inf )
1514+
15101515 spc_dict = dict ()
15111516 spc_dict_for_kinetics = dict ()
15121517 spc_dict_thermo = dict ()
@@ -1550,7 +1555,7 @@ def postprocess(path,metal,facet,sites,site_adjacency,repeats,slab_path=None,che
15501555
15511556 try :
15521557 kinetics = get_kinetics (os .path .join (path ,ts ),os .path .join (path ,"Adsorbates" ),metal ,facet ,slab ,sites ,site_adjacency ,nslab ,site_density ,config_dict = spc_dict_for_kinetics ,
1553- c_ref = c_ref ,o_ref = o_ref ,h_ref = h_ref ,n_ref = n_ref )
1558+ c_ref = c_ref ,o_ref = o_ref ,h_ref = h_ref ,n_ref = n_ref , allowed_structure_site_structures = allowed_structure_site_structures )
15541559 except KeyError : #species required isn't in spc_dict yet
15551560 continue
15561561
0 commit comments