pyhips/pyhips.py
def resolve_name(self):
        """
        Function to resolve target name in SIMBAD, and populate the instance variables with their relevant values.

        Return:
            int: status code 0 for successful operation, 1 for error. If an error is returned, it will likely have been printed to stdout
        """
        try:
            self.coords = SkyCoord.from_name(self.id, frame=self.frame.lower())
            results = self.simbad.query_object(self.id)
            self.otype = results["OTYPE"][0]
            self.sptype = results["SP_TYPE"][0]
            self.main_id = results["MAIN_ID"][0]
            return 0
        except Exception as e:
            print(e)
            return(1)

        Function to resolve target name in SIMBAD, and populate the instance variables with their relevant values.

        Return:
            int: status code 0 for successful operation, 1 for error. If an error is returned, it will likely have been printed to stdout
        
Function to resolve target name in SIMBAD, and populate the instance variables with their relevant values.
Return:
int: status code 0 for successful operation, 1 for error. If an error is returned, it will likely have been printed to stdout
Function to resolve target name in SIMBAD and populate the instance variables with their relevant values . Return : int : status code 0 for successful operation 1 for error . If an error is returned it will likely have been printed to stdout
def resolve_name(self):
        try:
            self.coords = SkyCoord.from_name(self.id, frame=self.frame.lower())
            results = self.simbad.query_object(self.id)
            self.otype = results["OTYPE"][0]
            self.sptype = results["SP_TYPE"][0]
            self.main_id = results["MAIN_ID"][0]
            return 0
        except Exception as e:
            print(e)
            return(1)
def resolve_name ( self ) : try : self . coords = SkyCoord . from_name ( self . id , frame = self . frame . lower ( ) ) results = self . simbad . query_object ( self . id ) self . otype = results [ "OTYPE" ] [ 0 ] self . sptype = results [ "SP_TYPE" ] [ 0 ] self . main_id = results [ "MAIN_ID" ] [ 0 ] return 0 except Exception as e : print ( e ) return ( 1 )
Function to resolve target name in SIMBAD, and populate the instance variables with their relevant values.
Function to resolve target name in SIMBAD and populate the instance variables with their relevant values .
"""
        Function to resolve target name in SIMBAD, and populate the instance variables with their relevant values.

        Return:
            int: status code 0 for successful operation, 1 for error. If an error is returned, it will likely have been printed to stdout
        """
self