Skip to content

Commit

Permalink
Update selectors to use dataframes or tables
Browse files Browse the repository at this point in the history
  • Loading branch information
sr525 committed Nov 27, 2023
1 parent 422fa8f commit 308fc04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/analysis/drp/dataSelectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def __call__(self, df, **kwargs):
"""
result = np.ones(len(df), dtype=bool)
for flag in self.selectWhenFalse:
result &= (df[flag].values == 0)
result &= (np.array(df[flag]) == 0)
for flag in self.selectWhenTrue:
result &= (df[flag].values == 1)
result &= (np.array(df[flag]) == 1)
return result


Expand Down

0 comments on commit 308fc04

Please sign in to comment.