Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-594

Confusing message from ingestPfsImages.py for already ingested files.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If a file has been ingested, the ingest.py super().runFile() returns None, when is then indexed to get the pfsConfig. That throws a TypeError which leaks out to a then puzzled human.

      (Pdb) n
      TypeError: 'NoneType' object is not subscriptable
      > /software/devel/cpl/obs_pfs/python/lsst/obs/pfs/ingest.py(446)runFile()
      -> self.ingestPfsConfig(pfsConfigDir, hduInfoList[0], args)
      (Pdb) l
      441  	        """
      442  	        import pdb; pdb.set_trace()
      443  	        try:
      444  	            hduInfoList = super().runFile(infile, registry, args)
      445  	            pfsConfigDir = args.pfsConfigDir if args.pfsConfigDir is not None else os.path.dirname(infile)
      446  ->	            self.ingestPfsConfig(pfsConfigDir, hduInfoList[0], args)
      447  	        except Exception:
      448  	            import traceback
      449  	            traceback.print_exc()
      450  	            raise
      451  	        return hduInfoList
      

        Attachments

          Activity

            People

            • Assignee:
              price price
              Reporter:
              cloomis cloomis
              Reviewers:
              cloomis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: