From 2c020678810198a5913ed9b24489bceddf952513 Mon Sep 17 00:00:00 2001 From: Jarron Leisenring Date: Wed, 6 Nov 2024 13:01:45 -0700 Subject: [PATCH] Update imreg_tools.py --- webbpsf_ext/imreg_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbpsf_ext/imreg_tools.py b/webbpsf_ext/imreg_tools.py index 1bcefd8..cc8298d 100644 --- a/webbpsf_ext/imreg_tools.py +++ b/webbpsf_ext/imreg_tools.py @@ -645,7 +645,7 @@ def read_ta_files(indir, pid, obsid, sca, file_type='rate.fits', # Get TACQ try: fta = get_files(ta_dir, pid, obsid=obsid, sca=sca, - file_type=fta_type, exp_type='NRC_TACQ')[0] + file_type=fta_type, exp_type='NRC_TACQ')[-1] except: raise RuntimeError(f'Unable to determine NRC_TACQ file for PID {pid} Obs, {obsid}, {sca}')