Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Jul 14, 2024
1 parent e387afd commit b1973bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/calibration_smoothing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"antnums = set([ant[0] for ant in cs.ants])\n",
"flags_per_antnum = [np.sum(cs.flag_grids[ant, 'Jnn']) + np.sum(cs.flag_grids[ant, 'Jee']) for ant in antnums]\n",
"\n",
"refant_nums = [ant[0] for ant in (cs.refant.values() if PER_POL_REFANT else [cs.refant]]\n",
"refant_nums = [ant[0] for ant in (cs.refant.values() if PER_POL_REFANT else [cs.refant])]\n",
"candidate_ants = [ant for ant, nflags in zip(antnums, flags_per_antnum) if (ant not in refant_nums) and (nflags <= np.percentile(flags_per_antnum, 25))\n",
" and not np.all(cs.flag_grids[ant, 'Jee']) and not np.all(cs.flag_grids[ant, 'Jnn'])]\n",
"ants_to_plot = [func(candidate_ants) for func in (np.min, np.max)]\n",
Expand Down

0 comments on commit b1973bd

Please sign in to comment.