diff --git a/python/lsst/donut/viz/plot_aos_task.py b/python/lsst/donut/viz/plot_aos_task.py index 22e9dcf..a7b4b5e 100644 --- a/python/lsst/donut/viz/plot_aos_task.py +++ b/python/lsst/donut/viz/plot_aos_task.py @@ -112,6 +112,13 @@ def runQuantum( zkPyramid, residPyramid, intrinsicPyramid = self.plotZernikePyramids(aos_raw) + # visit = inputRefs.aggregateAOSRaw.dataId["visit"] + # day_obs, seq_num = get_day_obs_seq_num_from_visitid(visit) + # filename = f"/sdf/home/m/mfl/u/rubintv/plots/{day_obs}_{seq_num}-zk_measurement_pyramid.png" + # Path(filename).touch() + # filename = f"/sdf/home/m/mfl/u/rubintv/plots/{day_obs}_{seq_num}-zk_residual_pyramid.png" + # Path(filename).touch() + butlerQC.put(zkPyramid, outputRefs.measuredZernikePyramid) butlerQC.put(residPyramid, outputRefs.residualZernikePyramid) butlerQC.put(intrinsicPyramid, outputRefs.intrinsicZernikePyramid) @@ -126,6 +133,9 @@ def runQuantum( zk_resid_fn = Path(tmpdir) / "zk_residual_pyramid.png" residPyramid.savefig(zk_resid_fn) + # XXX remove this! + filename = f"/sdf/home/m/mfl/u/rubintv/plots/{day_obs}_{seq_num}-zk_measurement_pyramid.png" + Path(filename).touch() self.uploader.uploadPerSeqNumPlot( instrument=get_instrument_channel_name(instrument), plotName="zk_measurement_pyramid", @@ -133,6 +143,10 @@ def runQuantum( seqNum=seq_num, filename=zk_meas_fn, ) + + # XXX remove this! + filename = f"/sdf/home/m/mfl/u/rubintv/plots/{day_obs}_{seq_num}-zk_residual_pyramid.png" + Path(filename).touch() self.uploader.uploadPerSeqNumPlot( instrument=get_instrument_channel_name(instrument), plotName="zk_residual_pyramid", @@ -289,6 +303,11 @@ def runQuantum( with tempfile.TemporaryDirectory() as tmpdir: donut_gallery_fn = Path(tmpdir) / f"fp_donut_gallery_{visit_id}.png" fig_dict[defocal_type].savefig(donut_gallery_fn) + + # XXX remove this! + filename = f"/sdf/home/m/mfl/u/rubintv/plots/{day_obs}_{seq_num}-fp_donut_gallery.png" + Path(filename).touch() + self.uploader.uploadPerSeqNumPlot( instrument=get_instrument_channel_name(inst), plotName="fp_donut_gallery",