Skip to content

Commit

Permalink
handle list
Browse files Browse the repository at this point in the history
  • Loading branch information
Athanaseus committed Feb 26, 2025
1 parent 9a96b96 commit 0df55a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rfinder/rfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def priors_flag(self,cfg_par):
#flag autocorrelations and bad antennas
for i in range(self.flag.shape[0]):

if self.aperfi_badant not in [None, '[]', []]:
if self.aperfi_badant not in [None, []]:
if (any(x == self.ant1[i] for x in self.aperfi_badant) or any(x == self.ant2[i] for x in self.aperfi_badant)):
self.flag[i,:,0] = True
if self.ant1[i] == self.ant2[i]:
Expand Down

0 comments on commit 0df55a5

Please sign in to comment.