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

UnboundLocalError: local variable 'axes2' referenced before assignment

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pipe_analysis
    • Labels:
      None
    • Story Points:
      4
    • Epic Link:
    • Sprint:
      DRP F20-3 (Aug)
    • Team:
      Data Release Production
    • Urgent?:
      No

      Description

      coaddAnalysis.py gave the following error for some data:

      Traceback (most recent call last):
        File "/home/hchiang2/PDR2/pa_stack/pipe_analysis/bin/coaddAnalysis.py", line 3, in <module>
          CoaddAnalysisTask.parseAndRun()
        File "/software/lsstsw/stack_20200220/stack/miniconda3-4.7.12-984c9f7/Linux64/pipe_base/19.0.0-9-g0ae078d+2/python/lsst/pipe/base/cmdLineTask.py", line 610, in parseAndRun
          resultList = taskRunner.run(parsedCmd)
        File "/software/lsstsw/stack_20200220/stack/miniconda3-4.7.12-984c9f7/Linux64/pipe_base/19.0.0-9-g0ae078d+2/python/lsst/pipe/base/cmdLineTask.py", line 221, in run
          resultList = list(mapFunc(self, targetList))
        File "/software/lsstsw/stack_20200220/stack/miniconda3-4.7.12-984c9f7/Linux64/pipe_base/19.0.0-9-g0ae078d+2/python/lsst/pipe/base/cmdLineTask.py", line 385, in __call__
          result = self.runTask(task, dataRef, kwargs)
        File "/software/lsstsw/stack_20200220/stack/miniconda3-4.7.12-984c9f7/Linux64/pipe_base/19.0.0-9-g0ae078d+2/python/lsst/pipe/base/cmdLineTask.py", line 447, in runTask
          return task.runDataRef(dataRef, **kwargs)
        File "/home/hchiang2/PDR2/pa_stack/pipe_analysis/python/lsst/pipe/analysis/coaddAnalysis.py", line 356, in runDataRef
          repoInfo.dataId, forcedStr="unforced " + self.catLabel, **plotKwargs)
        File "/home/hchiang2/PDR2/pa_stack/pipe_analysis/python/lsst/pipe/analysis/coaddAnalysis.py", line 881, in plotPsfFluxSnHists
          "Flux>{:.1f}".format(highFlux), "psf_used"])
        File "/home/hchiang2/PDR2/pa_stack/pipe_analysis/python/lsst/pipe/analysis/analysis.py", line 605, in plotHistogram
          axes2.set_ylim(0, 1.05)
      UnboundLocalError: local variable 'axes2' referenced before assignment
      

      I was using w_2020_08 + pipe_analysis 09a7675

        Attachments

          Issue Links

            Activity

            No work has yet been logged on this issue.

              People

              Assignee:
              lauren Lauren MacArthur
              Reporter:
              hchiang2 Hsin-Fang Chiang
              Reviewers:
              Sophie Reed
              Watchers:
              Hsin-Fang Chiang, Lauren MacArthur, Sophie Reed, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.