Skip to content

Commit

Permalink
Catch bad data
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed Jul 23, 2024
1 parent 2175d27 commit 0506c0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arrakis/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def plot_leakage(
np.full((bins, bins), np.nan),
np.linspace(-4, 4, bins),
np.linspace(-4, 4, bins),
WCS(),
None,
)

per_subplot_kw = {
Expand All @@ -267,6 +267,8 @@ def plot_leakage(
sharey=True,
)
for stokes, ax in ax_dict.items():
if leakage_dict[stokes].wcs is None:
continue
data = leakage_dict[stokes].data
xc = leakage_dict[stokes].xc
yc = leakage_dict[stokes].yc
Expand Down

0 comments on commit 0506c0a

Please sign in to comment.