Skip to content

Commit a8b42d1

Browse files
committed
Avoid casting to list
1 parent 1c4bed4 commit a8b42d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rmgpy/rmg/reactors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ def pass_species(self, label, phasesys):
180180
for i, rxn in enumerate(interface.reactions):
181181
if (
182182
(spc in rxn.reactants or spc in rxn.products)
183-
and all([spec.name in phasesys.species_dict for spec in rxn.reactants])
184-
and all([spec.name in phasesys.species_dict for spec in rxn.products])
183+
and all(spec.name in phasesys.species_dict for spec in rxn.reactants)
184+
and all(spec.name in phasesys.species_dict for spec in rxn.products)
185185
):
186186
rxnlist.append(rxn)
187187

0 commit comments

Comments
 (0)