Skip to content

Commit

Permalink
Fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Nov 30, 2023
1 parent c24a0bd commit f2bd221
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions stellarphot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def _update_passbands(self):
mask = self['passband'] == orig_pb
self['passband'][mask] = aavso_pb

def clean(self, remove_rows_with_mask=True, **other_restrictions):
def clean(self, remove_rows_with_mask=False, **other_restrictions):
"""
Return a catalog with only the rows that meet the criteria specified.
Expand Down Expand Up @@ -346,21 +346,19 @@ def clean(self, remove_rows_with_mask=True, **other_restrictions):
>>> bet['a'].mask = [True, False, False]
>>> bet['b'].mask = [False, False, True]
>>> bet.clean(remove_rows_with_mask=True)
<QTable length=1>
a b
<BaseEnhancedTable length=1>
a b
int64 int64
----- -----
2 2
>>> bet.clean(a='>2')
<QTable length=1>
a b
<BaseEnhancedTable length=1>
a b
int64 int64
----- -----
3 3
3 --
>>> t.clean()
"""
comparisons = {
'<': np.less,
Expand Down

0 comments on commit f2bd221

Please sign in to comment.