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

refLines.plot() failure

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done (View Workflow)
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      2DDRP-2021 A 7, 2DDRP-2021 A 8

      Description

      refLines.plot() fails with 

      ---------------------------------------------------------------------------
       AttributeError Traceback (most recent call last)
       <ipython-input-175-540f3c26a154> in <module>
       ----> 1 refLines.plot()/tigress/HSC/PFS/stack/20190925/stack/miniconda3-4.5.12-1172c30/Linux64/drp_stella/w.2021.31/python/pfs/drp/stella/referenceLine.py in plot(self, what, ls, alpha, color, label, labelStatus, labelLines, wavelength, spectrum)
       266 labels = {} # labels that we've used if labelLines is True
       267 for rl in self:
       --> 268 if (rl.status & rl.Status.NOT_VISIBLE):
       269 color = 'black'
       270 label = "not visible"AttributeError: 'ReferenceLine' object has no attribute 'Status'

      Hassan and I think that this should be trivial change in which rl.Status  needs to be changed to either rl.status.NOT_VISIBLE  or ReferenceLineStatus.NOT_VISIBLE
      This also applied to all other subsequent statues. 
      Please confirm if this is correct?

        Attachments

          Activity

            People

            • Assignee:
              price price
              Reporter:
              ncaplar ncaplar
              Reviewers:
              hassan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: