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

(In)equality semantics of Coords are confusing

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Minor
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None

      Description

      Viz:

      In [1]: from lsst.afw.coord import Coord
      In [2]: c1 = Coord("11:11:11", "22:22:22")
      In [3]: c1 == c1, c1 != c1
      Out[3]: (True, False)
      In [4]: c2 = Coord("33:33:33", "44:44:44")
      In [5]: c1 == c2, c1 != c2
      Out[5]: (False, True)
      In [6]: c3 = Coord("11:11:11", "22:22:22")
      In [7]: c1 == c3, c1 != c3
      Out[7]: (True, True)

      c1 is simultaneously equal to and not equal to c3!

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                swinbank John Swinbank
                Reporter:
                swinbank John Swinbank
                Reviewers:
                Jim Bosch
                Watchers:
                Jim Bosch, John Swinbank, Paul Price
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel