Skip to content

Commit

Permalink
handle outriggerless data
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Dec 26, 2024
1 parent df60e89 commit a89f27e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions notebooks/antenna_classification_summary.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,11 @@
"source": [
"def array_class_plot():\n",
" fig, axes = plt.subplots(1, 2, figsize=(14, 6), dpi=100, gridspec_kw={'width_ratios': [2, 1]})\n",
" plot_antclass(hd.antpos, overall_class, ax=axes[0], ants=[ant for ant in hd.data_ants if ant < 320], legend=False, \n",
" title=f'HERA Core: Overall Flagging Based on {overall_thresh:.1%} Daily Threshold')\n",
" plot_antclass(hd.antpos, overall_class, ax=axes[1], ants=[ant for ant in hd.data_ants if ant >= 320], radius=50, title='Outriggers')"
" if len([ant for ant in hd.data_ants if ant < 320]) > 0:\n",
" plot_antclass(hd.antpos, overall_class, ax=axes[0], ants=[ant for ant in hd.data_ants if ant < 320], legend=False, \n",
" title=f'HERA Core: Overall Flagging Based on {overall_thresh:.1%} Daily Threshold')\n",
" if len([ant for ant in hd.data_ants if ant >= 320]) > 0:\n",
" plot_antclass(hd.antpos, overall_class, ax=axes[1], ants=[ant for ant in hd.data_ants if ant >= 320], radius=50, title='Outriggers')"
]
},
{
Expand Down

0 comments on commit a89f27e

Please sign in to comment.