Skip to content

Commit

Permalink
make designmode file name general
Browse files Browse the repository at this point in the history
  • Loading branch information
imedan committed Oct 3, 2023
1 parent 96ecbef commit cae3c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/rsValidation_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit cae3c09

Please sign in to comment.