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

patchInfo.getIndex() returns the second index with a float instead of an int

    XMLWordPrintable

Details

    • Story
    • Status: Done
    • Resolution: Done
    • None
    • skymap
    • None
    • 0.5
    • Data Release Production
    • No

    Description

      lauren and krughoff report the following unexpected behavior:

      In [15]: skymap = butlerGen3.get("skyMap")
      In [16]: tractInfo = skymap.generateTract(9813)
      In [19]: tractInfo.getPatchIndexPair(33)
      Out[19]: (5, 4.0)
      

      (the final tuple should be ints)

      This is because of a bug here: https://github.com/lsst/skymap/blob/65b481455761ef12cb9518a3aa7bccbbc3713f14/python/lsst/skymap/tractInfo.py#L200 where the / should be //.

      Attachments

        Activity

          People

            erykoff Eli Rykoff
            erykoff Eli Rykoff
            Lauren MacArthur
            Eli Rykoff, Lauren MacArthur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Jenkins

                No builds found.