Skip to content

Commit

Permalink
fix list comprehension in apply_ignore() for poor-febe check
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Lam committed Oct 25, 2024
1 parent 2d812e5 commit 60ce16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pint_pal/timingconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def apply_ignore(self,toas,specify_keys=None,warn=False,model=None):
if self.get_snr_cut() > 25.0 and self.get_toa_type() == 'WB':
log.warning('snr-cut should be set to 25; try excising TOAs using other methods.')
if 'poor-febe' in valid_valued:
fs = np.array([(f['f'] if 'f' in f else None) in toas.orig_table['flags']])
fs = np.array([(f['f'] if 'f' in f else None) for f in toas.orig_table['flags']])
for febe in self.get_poor_febes():
febeinds = np.where(fs==febe)[0]
apply_cut_flag(toas,febeinds,'poorfebe',warn=warn)
Expand Down

0 comments on commit 60ce16d

Please sign in to comment.