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

Handle sets of NaN fluxes properly in coaddSpectra.py

    XMLWordPrintable

    Details

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

      Description

      I see coaddSpectra.py complaining:

      WARN: Multiple i2_hsc flux for target catId=10011 tract=1 patch=1,1 objId=75338845972883613 ({nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan}); using average
      

      and this appears to be coming from the (correct) IEEE754 behaviour of e.g. np.float64 that NaN != NaN. However, in this context, it's unhelpful.

      Please fix this so that all {{NaN}}s test equal, and we avoid this duplication.

        Attachments

          Activity

            People

            • Assignee:
              rhl rhl
              Reporter:
              rhl rhl
              Reviewers:
              price
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: