From cae3c093d7f834857ab14366ecb12e1a5bc030db Mon Sep 17 00:00:00 2001 From: imedan Date: Tue, 3 Oct 2023 11:26:56 -0500 Subject: [PATCH] make designmode file name general --- bin/rsValidation_html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/rsValidation_html.py b/bin/rsValidation_html.py index 75a90a1..06a8151 100644 --- a/bin/rsValidation_html.py +++ b/bin/rsValidation_html.py @@ -506,7 +506,7 @@ def write_html_jinja(valid_apo, valid_lco, designmode, if(dmarr is None): dmarr = np.zeros(len(designModeDict), dtype=arr.dtype) dmarr[i] = arr - fitsio.write(path + '/designmodes_rs_%s.fits' % plan, dmarr) + fitsio.write(path + '/designmodes_validation.fits', dmarr) # get validaiton results try: if vtype == 'dir': @@ -556,7 +556,7 @@ def write_html_jinja(valid_apo, valid_lco, designmode, if valid_apo is None and valid_lco is None: message = 'No validation files for this run' raise MugatuError(message=message) - designmode = fits.open(path + '/designmodes_rs_%s.fits' % plan)[1].data + designmode = fits.open(path + '/designmodes_validation.fits')[1].data write_html_jinja(valid_apo, valid_lco, designmode, plan, mugatu_version, kaiju_v, coordio_v, fps_calib_v,