azcam_ds9/ds9display.py
def find_displays(self):
        """
        Returns a list of ds9 servers.
        The returned list is like: ['a00009c:50064', 'a00009c:59734'], which is host:port.
        If not servers are found, the returned list is empty.

        :return list: Display info from XPA
        """

        # command: xpaacess -v ds9

        resp = []

        cmd = self.xpaaccess_app
        p = subprocess.Popen(
            [self.xpaaccess_app, "-v", "ds9"],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            shell=False,
        )
        output, errors = p.communicate()
        output = output.decode("utf-8")
        if output == "":
            return []
        output = output.strip()
        resp = output.split("\n")

        return resp

        Returns a list of ds9 servers.
        The returned list is like: ['a00009c:50064', 'a00009c:59734'], which is host:port.
        If not servers are found, the returned list is empty.

        :return list: Display info from XPA
        
Returns a list of ds9 servers.
Returns a list of ds9 servers .
def find_displays(self):
        resp = []
        cmd = self.xpaaccess_app
        p = subprocess.Popen(
            [self.xpaaccess_app, "-v", "ds9"],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            shell=False,
        )
        output, errors = p.communicate()
        output = output.decode("utf-8")
        if output == "":
            return []
        output = output.strip()
        resp = output.split("\n")
        return resp
def find_displays ( self ) : resp = [ ] cmd = self . xpaaccess_app p = subprocess . Popen ( [ self . xpaaccess_app , "-v" , "ds9" ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE , shell = False , ) output , errors = p . communicate ( ) output = output . decode ( "utf-8" ) if output == "" : return [ ] output = output . strip ( ) resp = output . split ( "\n" ) return resp
Returns a list of ds9 servers.
Returns a list of ds9 servers .
"""
        Returns a list of ds9 servers.
        The returned list is like: ['a00009c:50064', 'a00009c:59734'], which is host:port.
        If not servers are found, the returned list is empty.

        :return list: Display info from XPA
        """ # command: xpaacess -v ds9
Display info from XPA
Display info from XPA
list
self