From 54a8c6fa2e72510e7c6733a44bd410ac399ef459 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Sun, 2 Mar 2025 07:44:02 -0700 Subject: [PATCH] small fixes for per-night inpainting --- hera_notebook_templates/notebooks/lststack.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hera_notebook_templates/notebooks/lststack.ipynb b/hera_notebook_templates/notebooks/lststack.ipynb index 9681611..90a6889 100644 --- a/hera_notebook_templates/notebooks/lststack.ipynb +++ b/hera_notebook_templates/notebooks/lststack.ipynb @@ -188,8 +188,8 @@ "inpaint_standoff: float = 0.0 # ns\n", "inpaint_eigencutoff: float = 1e-12\n", "inpaint_mindelay: float = 500.0 # ns\n", - "inpaint_max_gap_factor: float = 1.5\n", - "inpaint_max_convolved_flag_frac: float = 0.667\n", + "inpaint_max_gap_factor: float = 1.0\n", + "inpaint_max_convolved_flag_frac: float = 0.4\n", "inpaint_sample_cov_fraction: float = 0.0 # Default zero uses variance, one uses full sample covariance\n", "inpaint_use_unbiased_estimator: bool = False # Default False slight over estimate of the covariance, but guaranteed to be non-negative\n", "spws: str = \"50.1~62.2,63.3~73.5,74.6~85.4,108.0~116.1,117.3~124.4,125.3~136.2,138.3~148.2,150.1~159.2,159.3~169.9,171.9~181.1,181.4~196.4,198.5~208.4,212.3~220.6,224.4~231.1\"\n", @@ -1798,9 +1798,9 @@ "source": [ "if make_plots and inpaint_method in ['simultaneous', 'per-night']:\n", " biggest_inpaint_diffs = {}\n", - " n_biggest_diffs = 5\n", + " n_biggest_diffs = 1\n", "\n", - " for band in inpaint_bands:\n", + " for band in spws:\n", " biggest_inpaint_diffs[(band.start, band.stop)] = get_biggest_inpaint_differences(band, n=n_biggest_diffs)\n" ] },