Skip to content

Commit

Permalink
Avoid casting to list
Browse files Browse the repository at this point in the history
  • Loading branch information
hwpang committed Apr 25, 2024
1 parent 560be02 commit 95ad95c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmgpy/rmg/reactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def pass_species(self, label, phasesys):
for i, rxn in enumerate(interface.reactions):
if (
(spc in rxn.reactants or spc in rxn.products)
and all([spec.name in phasesys.species_dict for spec in rxn.reactants])
and all([spec.name in phasesys.species_dict for spec in rxn.products])
and all(spec.name in phasesys.species_dict for spec in rxn.reactants)
and all(spec.name in phasesys.species_dict for spec in rxn.products)
):
rxnlist.append(rxn)

Expand Down

0 comments on commit 95ad95c

Please sign in to comment.