diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_webpage_generator.py b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_webpage_generator.py index b00622e..5fb7fe2 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_webpage_generator.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_webpage_generator.py @@ -2616,16 +2616,18 @@ function renderBeamlineStates(bl){{ // Key params to show in expanded job detail, in display order. const TQ_PARAM_DISPLAY = [ - ['tomo_type', 'Type'], - ['tomo_countingtime', 'Exposure (s)'], - ['fovx', 'FOV x (\u00b5m)'], - ['fovy', 'FOV y (\u00b5m)'], - ['tomo_angle_stepsize', 'Angle step (\u00b0)'], - ['tomo_angle_range', 'Angle range (\u00b0)'], - ['tomo_shellstep', 'Shell step (\u00b5m)'], - ['stitch_x', 'Stitch x'], - ['stitch_y', 'Stitch y'], - ['ptycho_reconstruct_foldername','Recon folder'], + ['tomo_type', 'Type'], + ['tomo_countingtime', 'Exposure (s)'], + ['fovx', 'FOV x (\u00b5m)'], + ['fovy', 'FOV y (\u00b5m)'], + ['tomo_angle_stepsize', 'Angle step (\u00b0)'], + ['tomo_angle_range', 'Angle range (\u00b0)'], + ['tomo_shellstep', 'Shell step (\u00b5m)'], + ['stitch_x', 'Stitch x'], + ['stitch_y', 'Stitch y'], + ['frames_per_trigger', 'Frames/trigger'], + ['single_point_instead_of_fermat_scan','Single point'], + ['ptycho_reconstruct_foldername', 'Recon folder'], ]; function fmtTqParam(key, val){{ @@ -2636,6 +2638,11 @@ function fmtTqParam(key, val){{ function renderTomoQueue(jobs){{ const el=document.getElementById('tomo-queue-content'); + // Snapshot which job indices are currently open before replacing innerHTML + const openIndices=new Set(); + el.querySelectorAll('details.tq-job').forEach((det,i)=>{{ + if(det.open) openIndices.add(i); + }}); if(!jobs||jobs.length===0){{ el.innerHTML='