Skip to content

Commit

Permalink
stokes2vis return None when all data are flagged in a chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Sep 13, 2024
1 parent 74e8e71 commit 9947a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pfb/utils/stokes2vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def single_stokes(
# we rely on this to check the number of output bands and
# to ensure we don't end up with fully flagged chunks
if flag.all():
return 1
return None

nrow, nchan, ncorr = data.shape

Expand Down

0 comments on commit 9947a5a

Please sign in to comment.