Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Oct 15, 2024
1 parent 3f07532 commit f6d42a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pynta/coveragedependence.py
Original file line number Diff line number Diff line change
Expand Up @@ -2122,6 +2122,7 @@ def mol_to_atoms(admol,slab,sites,metal,partial_atoms=None,partial_admol=None):
_type_: Atoms object corresponding to the admol 2D configuration
"""
if partial_atoms and partial_admol:
assert admol.is_subgraph_isomorphic(partial_admol.to_group(),save_order=True)
atoms = deepcopy(partial_atoms)
gpartial_admol = partial_admol.to_group()
subisos = admol.find_subgraph_isomorphisms(gpartial_admol,save_order=True)
Expand Down
3 changes: 3 additions & 0 deletions pynta/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1236,12 +1236,15 @@ def run_task(self, fw_spec):

configs_for_calculation,config_for_calculation_to_admol = get_configs_for_calculation(configs_of_concern_by_admol,computed_configs,tree,Ncalc_per_iter)

for k,v in config_for_calculation_to_admol:
assert k.is_subgraph_isomorphic(v.to_group(),save_order=True)
os.makedirs(os.path.join(path,"Iterations",str(iter),"Samples"))

sample_fws = []
calculation_directories = []
for i,config in enumerate(configs_for_calculation):
partial_admol = config_for_calculation_to_admol[config]
assert config.is_subgraph_isomorphic(partial_admol.to_group(),save_order=True)
admol_name = [k for k,v in admol_name_structure_dict.items() if v is partial_admol][0]
admol_path = admol_name_path_dict[admol_name]
partial_atoms = read(admol_path)
Expand Down

0 comments on commit f6d42a5

Please sign in to comment.