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

lsst.afw.display.get_display() should raise warning if display_ds9 is not setup

    Details

    • Type: Bug
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: afw
    • Templates:

      Description

      # exp is an instance of `lsst.afw.image.ExposureF
      * import lsst.afw.display as display
      disp = display.getDisplay()
      disp.mtv(exp)
      

      runs without any complains or indication about a problem but fails to display anything on ds9, even when it is already open. As Russell Owen pointed out, the problem can be solved by setting up display_ds9 before running the code (other display managers will work too).

      It would be nice to log a warning that informs the user of this requirement when disp.mtv is called without any display manager being set up.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rbiswas Rahul Biswas
                Watchers:
                Rahul Biswas, Robert Lupton, Russell Owen, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel