Skip to content

Commit

Permalink
Fix double-listing bug in Selection
Browse files Browse the repository at this point in the history
  • Loading branch information
klarh committed Jun 22, 2020
1 parent 89d334f commit 684643b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flowws_analysis/Selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ class Selection(flowws.Stage):

def run(self, scope, storage):
"""Evaluate the given selection criteria and filter particles."""
found_quantities = [name for name in DEFAULT_PARTICLE_QUANTITIES
if name in scope]
found_quantities.extend(scope.get('color_scalars', []))
found_quantities = {name for name in DEFAULT_PARTICLE_QUANTITIES
if name in scope}
found_quantities.update(scope.get('color_scalars', []))

namespace = dict(scope=scope)
namespace['numpy'] = namespace['np'] = np
Expand Down

0 comments on commit 684643b

Please sign in to comment.