Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-26204

specs not included in JSON report from make_job_document.py

    XMLWordPrintable

    Details

      Description

      The specs aren't actually added to the JSON job created by running make_job_document.py. This does not affect dispatch to SQuaSH, but when trying to generate an lsst.verify.Report from that JSON document, the absence of specs means the report is empty.

        Attachments

          Activity

          Hide
          jcarlin Jeffrey Carlin added a comment -

          From the command line, I ran:

          python make_job_document.py /home/jcarlin/jhome/rc2v20_butler.yaml kbechtol/test_metrics_3 --metrics_package 'validate_drp' --spec 'design'

          To read/view from a notebook: 

          vdrp_gen3 = '/project/jcarlin/test_pipetask/metric-pipeline-tasks/bin.src/validate_drp_design_9615_r_1596240702.6156754.json

          # Read in the .json saved by a validate_drp run:
          with open(vdrp_gen3) as f:
              job3 = lsst.verify.Job.deserialize(**json.load(f)){{}}

          job3.specs

          Table length=0

          Name Test Tags
          float64 float64 float64
          Show
          jcarlin Jeffrey Carlin added a comment - From the command line, I ran: python make_job_document.py /home/jcarlin/jhome/rc2v20_butler.yaml kbechtol/test_metrics_3 --metrics_package 'validate_drp' --spec 'design' To read/view from a notebook:  vdrp_gen3 = '/project/jcarlin/test_pipetask/metric-pipeline-tasks/bin.src/validate_drp_design_9615_r_1596240702.6156754.json # Read in the .json saved by a validate_drp run: with open(vdrp_gen3) as f:     job3 = lsst.verify.Job.deserialize(**json.load(f)) {{}} job3.specs Table length=0 Name Test Tags float64 float64 float64

            People

            Assignee:
            krughoff Simon Krughoff
            Reporter:
            jcarlin Jeffrey Carlin
            Watchers:
            Jeffrey Carlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: