From f2bd221f826f3b4641de2e7b287fe8440ba39a97 Mon Sep 17 00:00:00 2001 From: Matt Craig Date: Thu, 30 Nov 2023 07:37:11 -0600 Subject: [PATCH] Fix doctest --- stellarphot/core.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/stellarphot/core.py b/stellarphot/core.py index 4d8e8542..abacae13 100644 --- a/stellarphot/core.py +++ b/stellarphot/core.py @@ -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. @@ -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) - - a b + + a b int64 int64 ----- ----- 2 2 >>> bet.clean(a='>2') - - a b + + a b int64 int64 ----- ----- - 3 3 + 3 -- - - >>> t.clean() """ comparisons = { '<': np.less,