Skip to content

Commit

Permalink
fix bug where array becomes flagged inside iterative RFI loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Feb 13, 2025
1 parent 56ac0fe commit b2eb116
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions notebooks/full_day_auto_checker.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@
" antenna_class=overall_class)\n",
" overall_class += auto_shape_class\n",
"\n",
" # check if the whole array is now flagged\n",
" if (len(overall_class.good_ants) + len(overall_class.suspect_ants)) == 0:\n",
" break\n",
" \n",
" # check for convergence by seeing whether we've previously gotten to this number of flagged antennas and channels\n",
" if stage == 3:\n",
" if (len(overall_class.bad_ants), np.sum(rfi_flags)) in prior_end_states:\n",
Expand Down

0 comments on commit b2eb116

Please sign in to comment.