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

Allow zoom to be set before mtv in afw Displays for Firefly backend

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: display_firefly, SUIT
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      SUIT Sprint 2018-06
    • Team:
      Science User Interface

      Description

      A common pattern for using afw.display is to display an image with a zoom level. With the Firefly backend, currently it is necessary to mtv (display) the image and then issue a zoom command. This displays the entire image, which can take some time for large images, and then applies the zoom. This improvement is for the backend to keep track of the last commanded zoom level, and to include it in the call to FIreflyClient.show_fits.

        Attachments

          Issue Links

            Activity

            No builds found.
            shupe David Shupe created issue -
            shupe David Shupe made changes -
            Field Original Value New Value
            Risk Score 0
            shupe David Shupe made changes -
            Epic Link DM-14499 [ 84664 ]
            shupe David Shupe made changes -
            Sprint SUIT Sprint 2018-06 [ 705 ]
            Story Points 2
            Team Science User Interface [ 10303 ]
            Watchers David Shupe [ David Shupe ] David Shupe, Gregory Dubois-Felsmann, Simon Krughoff, Trey Roby, Xiuqin Wu [ David Shupe, Gregory Dubois-Felsmann, Simon Krughoff, Trey Roby, Xiuqin Wu ]
            Description A common pattern for using {{afw.display}} is to display an image with a zoom level. With the Firefly backend, currently it is necessary to {{mtv}} (display) the image and then issue a zoom command. This displays the entire image, which can take some time for large images, and then applies the zoom. This improvement is for the backend to keep track of the last commanded zoom level, and to include it in the call to {{FIreflyClient.show_fits}}.
            gpdf Gregory Dubois-Felsmann made changes -
            Component/s display_firefly [ 15115 ]
            Hide
            gpdf Gregory Dubois-Felsmann added a comment - - edited

            If you can, I would suggest remembering the most recent pan() command as well.  Even though we don't have an optimized API yet (see DM-14736) for choosing the center point at the time of initial display/ mtv(), this will enable client-side code to be rewritten only once, now, to take advantage of the optimizations.

            Show
            gpdf Gregory Dubois-Felsmann added a comment - - edited If you can, I would suggest remembering the most recent pan() command as well.  Even though we don't have an optimized API yet (see DM-14736 ) for choosing the center point at the time of initial display/ mtv() , this will enable client-side code to be rewritten only once, now, to take advantage of the optimizations.
            shupe David Shupe made changes -
            Reviewers Jim Bosch [ jbosch ]
            Status To Do [ 10001 ] In Review [ 10004 ]
            Hide
            jbosch Jim Bosch added a comment -

            Looks good!

            Show
            jbosch Jim Bosch added a comment - Looks good!
            jbosch Jim Bosch made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            shupe David Shupe made changes -
            Watchers David Shupe, Gregory Dubois-Felsmann, Jim Bosch, Simon Krughoff, Trey Roby, Xiuqin Wu [ David Shupe, Gregory Dubois-Felsmann, Jim Bosch, Simon Krughoff, Trey Roby, Xiuqin Wu ] David Shupe, Gregory Dubois-Felsmann, Jim Bosch, Robert Lupton, Simon Krughoff, Trey Roby, Xiuqin Wu [ David Shupe, Gregory Dubois-Felsmann, Jim Bosch, Robert Lupton, Simon Krughoff, Trey Roby, Xiuqin Wu ]
            Hide
            shupe David Shupe added a comment -

            The implementation in the tickets/DM-14734 branch introduced a typo in a parameter for Firefly, which re-introduced the region overlay problem of DM-14732. A one-line change was made in tickets/DM-14734-postfix branch and pushed to fix this typo.

            Show
            shupe David Shupe added a comment - The implementation in the tickets/ DM-14734 branch introduced a typo in a parameter for Firefly, which re-introduced the region overlay problem of DM-14732 . A one-line change was made in tickets/ DM-14734 -postfix branch and pushed to fix this typo.
            shupe David Shupe made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-14499 [ 84664 ] DM-8771 [ 28610 ]
            shupe David Shupe made changes -
            Link This issue relates to DM-15333 [ DM-15333 ]

              People

              Assignee:
              shupe David Shupe
              Reporter:
              shupe David Shupe
              Reviewers:
              Jim Bosch
              Watchers:
              David Shupe, Gregory Dubois-Felsmann, Jim Bosch, Robert Lupton, Simon Krughoff, Trey Roby, Xiuqin Wu [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.