Skip to content

Commit

Permalink
Update explorer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
donerancl authored Jun 27, 2024
1 parent 1ac1dd5 commit df3fd57
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arkane/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,10 @@ def execute(self, output_file, plot, file_format='pdf', print_summary=True, spec
for r in rxn.reactants + rxn.products:
if forbidden_structures.is_molecule_forbidden(r.molecule[0]):
rm_rxns.append(rxn)

print("In ExplorerJob.execute\n",flush=True)
print(f"Num reactants {len(rxn.reactants)}, num products {len(rxn.products)}\n",flush=True)
if len(rxn.reactants) > 1 and len(rxn.products) > 1:
num_unpaired_electrons_reactants = sum([r.multiplicity-1 for r in rxn.reactants])
num_unpaired_electrons_products = sum([r.multiplicity-1 for r in rxn.products])
print(f"Unpaired electrons {num_unpaired_electrons_reactants} => {num_unpaired_electrons_products}\n",flush=True)
if num_unpaired_electrons_products!=num_unpaired_electrons_reactants:
print("Removing reaction\n",flush=True)
rm_rxns.append(rxn)

for rxn in rm_rxns:
Expand Down

0 comments on commit df3fd57

Please sign in to comment.