azcam_ds9/ds9display.py
def show_stats(self, roi_number=0):
        """
        Interactive: Print stats from an ROI in a real-time loop until *q* is pressed.
        print() is allowed here as interactive only.

        :param int roi_number: Number of ROI to get status
        :return list: [status,mean,sdev] for ROI
        """

        print("Displaying mean, sdev, ROI - press q to quit...")

        while 1:
            try:
                mean, sdev = self.get_stats(roi_number)
                print(
                    "mean: %.1f   sdev: %.2f   ROI: %s"
                    % (mean, sdev, str(self.get_roi_string(roi_number)))
                )
                key = azcam.utils.check_keyboard(0)
                if key == "q":
                    break
                time.sleep(0.1)
            except Exception:
                pass

            if azcam.utils.check_keyboard(0) == "q":
                break

        return

        Interactive: Print stats from an ROI in a real-time loop until *q* is pressed.
        print() is allowed here as interactive only.

        :param int roi_number: Number of ROI to get status
        :return list: [status,mean,sdev] for ROI
        
Print stats from an ROI in a real-time loop until *q* is pressed.
print() is allowed here as interactive only.
Print stats from an ROI in a real - time loop until * q * is pressed . print () is allowed here as interactive only .
def show_stats(self, roi_number=0):
        print("Displaying mean, sdev, ROI - press q to quit...")
        while 1:
            try:
                mean, sdev = self.get_stats(roi_number)
                print(
                    "mean: %.1f   sdev: %.2f   ROI: %s"
                    % (mean, sdev, str(self.get_roi_string(roi_number)))
                )
                key = azcam.utils.check_keyboard(0)
                if key == "q":
                    break
                time.sleep(0.1)
            except Exception:
                pass
            if azcam.utils.check_keyboard(0) == "q":
                break
        return
def show_stats ( self , roi_number = 0 ) : print ( "Displaying mean, sdev, ROI - press q to quit..." ) while 1 : try : mean , sdev = self . get_stats ( roi_number ) print ( "mean: %.1f   sdev: %.2f   ROI: %s" % ( mean , sdev , str ( self . get_roi_string ( roi_number ) ) ) ) key = azcam . utils . check_keyboard ( 0 ) if key == "q" : break time . sleep ( 0.1 ) except Exception : pass if azcam . utils . check_keyboard ( 0 ) == "q" : break return
Interactive: Print stats from an ROI in a real-time loop until *q* is pressed.
Interactive : Print stats from an ROI in a real - time loop until * q * is pressed .
"""
        Interactive: Print stats from an ROI in a real-time loop until *q* is pressed.
        print() is allowed here as interactive only.

        :param int roi_number: Number of ROI to get status
        :return list: [status,mean,sdev] for ROI
        """
[status,mean,sdev] for ROI
[ status mean sdev ] for ROI
list
self
roi_number
Number of ROI to get status
Number of ROI to get status