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

Remove exposureId from visitInfo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Invalid
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw

      Description

      exposureId in visitInfo is not a visit-exposure level identifier, but rather a ccd-exposure level identifier (see docstring for obs.base.CameraMapper._computeCcdExposureId() for the only place where this seems to be specified). Thus, it should not be included in visitInfo, which is only things that are common across the visit. exposureId should be moved back into ExposureInfo.

      We do need a visit-exposure level identifier to be included in visitInfo, so that we can link exposures within visits without using the butler (e.g. without dataRef.dataId['visit']). We could have makeRawVisitInfo() add the butler visitId to the new visitInfo.visitId that this ticket will add.

      Marking this Critical because we should fix this ASAP, before use of visitInfo.exposureId becomes widespread. This is an API-breaking change, so it may need an RFC?

      See this discussion that generated this ticket:

      https://lsstc.slack.com/archives/C3UCAEW3D/p1517724549000034

        Attachments

          Issue Links

            Activity

            Parejkoj John Parejko created issue -
            Parejkoj John Parejko made changes -
            Field Original Value New Value
            Description [{exposureId}} in {{visitInfo}} is *not* a visit-exposure level identifier, but rather a ccd-exposure level identifier (see docstring for {{obs.base.CameraMapper._computeCcdExposureId()}} for the only place where this seems to be specified). Thus, it should not be included in {{visitInfo}}, which is only things that are common across the visit. {{exposureId}} should be moved back into {{ExposureInfo}}.

            We do need a visit-exposure level identifier to be included in {{visitInfo}}, so that we can link exposures within visits without using the butler (e.g. without {{dataRef.dataId['visit']}}). We could have {{makeRawVisitInfo()}} add the butler visitId to the new {{visitInfo.visitId}} that this ticket will add.

            Marking this Critical because we should fix this ASAP, before use of {{visitInfo.exposureId}} becomes widespread. This is an API-breaking change, so it may need an RFC?

            See this discussion that generated this ticket:

            https://lsstc.slack.com/archives/C3UCAEW3D/p1517724549000034
            {{exposureId}} in {{visitInfo}} is *not* a visit-exposure level identifier, but rather a ccd-exposure level identifier (see docstring for {{obs.base.CameraMapper._computeCcdExposureId()}} for the only place where this seems to be specified). Thus, it should not be included in {{visitInfo}}, which is only things that are common across the visit. {{exposureId}} should be moved back into {{ExposureInfo}}.

            We do need a visit-exposure level identifier to be included in {{visitInfo}}, so that we can link exposures within visits without using the butler (e.g. without {{dataRef.dataId['visit']}}). We could have {{makeRawVisitInfo()}} add the butler visitId to the new {{visitInfo.visitId}} that this ticket will add.

            Marking this Critical because we should fix this ASAP, before use of {{visitInfo.exposureId}} becomes widespread. This is an API-breaking change, so it may need an RFC?

            See this discussion that generated this ticket:

            https://lsstc.slack.com/archives/C3UCAEW3D/p1517724549000034
            Parejkoj John Parejko made changes -
            Link This issue relates to RFC-459 [ RFC-459 ]
            rowen Russell Owen made changes -
            Comment [ I think we need a field like this in VisitInfo, though I agree that it is not being set correctly at this time. I suggest we retain it, but change our code to not set it until we can set it properly. Furthermore, we can probably modify most obs packages to set it correctly without much difficulty. A standardized, non-obs-specific means of setting it will have to wait, but meanwhile we can have a proper visit ID. ]
            tjenness Tim Jenness made changes -
            Link This issue is triggered by RFC-459 [ RFC-459 ]
            tjenness Tim Jenness made changes -
            Link This issue relates to RFC-459 [ RFC-459 ]
            tjenness Tim Jenness made changes -
            Link This issue relates to DM-13943 [ DM-13943 ]
            tjenness Tim Jenness made changes -
            Link This issue relates to DM-13944 [ DM-13944 ]
            Parejkoj John Parejko made changes -
            Link This issue duplicates DM-13943 [ DM-13943 ]
            Parejkoj John Parejko made changes -
            Resolution Done [ 10000 ]
            Status To Do [ 10001 ] Invalid [ 11005 ]
            krzys Krzysztof Findeisen made changes -
            Link This issue relates to DM-13943 [ DM-13943 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Parejkoj John Parejko
              Watchers:
              Dan Taranu, Eli Rykoff, Jim Bosch, John Parejko, John Swinbank, Kian-Tat Lim, Michael Wood-Vasey, Russell Owen, Simon Krughoff, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.