@@ -226,7 +226,7 @@ def plot_tod(aman, i_det, cal_type, show=True, output_dir=None):
226226
227227 i_y = 0
228228 i_x = 1
229- x = aman .stm_cal .coadd_data ["iirc" ][ "f1_gain" ][ "x" ][ i_det ]
229+ x = aman .stm_cal .coadd_data ["x" ]
230230 y = aman .stm_cal .coadd_data ["iirc" ]["f1_gain" ]["y" ][i_det ]
231231 yerr = aman .stm_cal .coadd_data ["iirc" ]["f1_gain" ]["yerr" ][i_det ]
232232 axes [i_y , i_x ].errorbar (x , y , yerr , fmt = "o" , capsize = 5 )
@@ -236,15 +236,15 @@ def plot_tod(aman, i_det, cal_type, show=True, output_dir=None):
236236
237237 i_y = 1
238238 i_x = 1
239- x = aman .stm_cal .coadd_data ["hpf" ][ "f1_gain" ][ "x" ][ i_det ]
239+ x = aman .stm_cal .coadd_data ["x" ]
240240 y = aman .stm_cal .coadd_data ["hpf" ]["f1_gain" ]["y" ][i_det ]
241241 yerr = aman .stm_cal .coadd_data ["hpf" ]["f1_gain" ]["yerr" ][i_det ]
242242 axes [i_y , i_x ].errorbar (
243243 x , y , yerr , fmt = "o" , capsize = 5 , color = "C1" , zorder = 0 , label = "HPFed"
244244 )
245245 axes [i_y , i_x ].set_title (f"Co-added signal: Filtered data, { ufm } " )
246246
247- x = aman .stm_cal .coadd_data ["lpf" ][ "f1_gain" ][ "x" ][ i_det ]
247+ x = aman .stm_cal .coadd_data ["x" ]
248248 y = aman .stm_cal .coadd_data ["lpf" ]["f1_gain" ]["y" ][i_det ]
249249 yerr = aman .stm_cal .coadd_data ["lpf" ]["f1_gain" ]["yerr" ][i_det ]
250250 axes [i_y , i_x ].errorbar (
@@ -309,7 +309,9 @@ def plot_tod(aman, i_det, cal_type, show=True, output_dir=None):
309309 )
310310 filter_cutoff = (
311311 aman .stm_cal .filtering_params ["lpf_cutoff_factor" ]
312- * aman .stm_cal .filtering_params ["filter_freq_gain" ][0 ]
312+ * aman .stm_cal .filtering_params .filter_freqs [
313+ aman .stm_cal .chopping_freq_key .vals == "f1_gain"
314+ ][0 ]
313315 )
314316 lpf = tod_ops .filters .low_pass_sine2 (
315317 filter_cutoff ,
@@ -490,7 +492,7 @@ def plot_tod(aman, i_det, cal_type, show=True, output_dir=None):
490492 axes [i_y , i_x ].set_ylim (- 0.005 , 0.005 )
491493
492494 i_x = 1
493- x = aman .stm_cal .coadd_data ["iirc" ][ f_key ][ "x" ][ i_det ]
495+ x = aman .stm_cal .coadd_data ["x" ]
494496 y = aman .stm_cal .coadd_data ["iirc" ][f_key ]["y" ][i_det ]
495497 yerr = aman .stm_cal .coadd_data ["iirc" ][f_key ]["yerr" ][i_det ]
496498 axes [i_y , i_x ].errorbar (
@@ -502,14 +504,14 @@ def plot_tod(aman, i_det, cal_type, show=True, output_dir=None):
502504 axes [i_y , i_x ].set_xlabel ("Timing (1 cycle)" )
503505 axes [i_y , i_x ].set_ylabel ("TOD [pW]" )
504506
505- x = aman .stm_cal .coadd_data ["hpf" ][ f_key ][ "x" ][ i_det ]
507+ x = aman .stm_cal .coadd_data ["x" ]
506508 y = aman .stm_cal .coadd_data ["hpf" ][f_key ]["y" ][i_det ]
507509 yerr = aman .stm_cal .coadd_data ["hpf" ][f_key ]["yerr" ][i_det ]
508510 axes [i_y , i_x ].errorbar (
509511 x , y , yerr , fmt = "o" , capsize = 3 , color = "C1" , label = "(IIRC+HPF)ed data"
510512 )
511513
512- x = aman .stm_cal .coadd_data ["lpf" ][ f_key ][ "x" ][ i_det ]
514+ x = aman .stm_cal .coadd_data ["x" ]
513515 y = aman .stm_cal .coadd_data ["lpf" ][f_key ]["y" ][i_det ]
514516 yerr = aman .stm_cal .coadd_data ["lpf" ][f_key ]["yerr" ][i_det ]
515517 axes [i_y , i_x ].errorbar (
0 commit comments