astroquery/open_exoplanet_catalogue/utils.py
def machine_readable(self, separator="\t", missingval="None"):
        """
        Creates a string intended for a machine to read (ex, gnuplot)
        prints as follows
        value(separator)errorplus(separator)errorminus(separator)upperlimit(separator)lowerlimit

        if the value does not exist, the missingval is added instead

        Parameters
        ----------
        separator: str
            string used to separate values while printing
        missingval: str
            string to use for NoneType values

        Returns
        -------
        str
        """

        temp = ""
        if hasattr(self, "value") and self.value is not None:
            temp += str(self.value) + separator
        else:
            temp += missingval + separator
        if hasattr(self, "errorplus") and self.errorplus is not None:
            temp += str(self.errorplus) + separator
        else:
            temp += missingval + separator
        if hasattr(self, "errorminus") and self.errorminus is not None:
            temp += str(self.errorminus) + separator
        else:
            temp += missingval + separator
        if hasattr(self, "upperlimit") and self.upperlimit is not None:
            temp += str(self.upperlimit) + separator
        else:
            temp += missingval + separator
        if hasattr(self, "lowerlimit") and self.lowerlimit is not None:
            temp += str(self.lowerlimit) + separator
        else:
            temp += missingval + separator
        return temp.strip(separator)

        Creates a string intended for a machine to read (ex, gnuplot)
        prints as follows
        value(separator)errorplus(separator)errorminus(separator)upperlimit(separator)lowerlimit

        if the value does not exist, the missingval is added instead

        Parameters
        ----------
        separator: str
            string used to separate values while printing
        missingval: str
            string to use for NoneType values

        Returns
        -------
        str
        


if the value does not exist, the missingval is added instead

Parameters

str
string used to separate values while printing
missingval: str
string to use for NoneType values

Returns

str
if the value does not exist the missingval is added instead Parameters str string used to separate values while printing missingval : str string to use for NoneType values Returns str
def machine_readable(self, separator="\t", missingval="None"):
        temp = ""
        if hasattr(self, "value") and self.value is not None:
            temp += str(self.value) + separator
        else:
            temp += missingval + separator
        if hasattr(self, "errorplus") and self.errorplus is not None:
            temp += str(self.errorplus) + separator
        else:
            temp += missingval + separator
        if hasattr(self, "errorminus") and self.errorminus is not None:
            temp += str(self.errorminus) + separator
        else:
            temp += missingval + separator
        if hasattr(self, "upperlimit") and self.upperlimit is not None:
            temp += str(self.upperlimit) + separator
        else:
            temp += missingval + separator
        if hasattr(self, "lowerlimit") and self.lowerlimit is not None:
            temp += str(self.lowerlimit) + separator
        else:
            temp += missingval + separator
        return temp.strip(separator)
def machine_readable ( self , separator = "\t" , missingval = "None" ) : temp = "" if hasattr ( self , "value" ) and self . value is not None : temp += str ( self . value ) + separator else : temp += missingval + separator if hasattr ( self , "errorplus" ) and self . errorplus is not None : temp += str ( self . errorplus ) + separator else : temp += missingval + separator if hasattr ( self , "errorminus" ) and self . errorminus is not None : temp += str ( self . errorminus ) + separator else : temp += missingval + separator if hasattr ( self , "upperlimit" ) and self . upperlimit is not None : temp += str ( self . upperlimit ) + separator else : temp += missingval + separator if hasattr ( self , "lowerlimit" ) and self . lowerlimit is not None : temp += str ( self . lowerlimit ) + separator else : temp += missingval + separator return temp . strip ( separator )
Creates a string intended for a machine to read (ex, gnuplot)
prints as follows
value(separator)errorplus(separator)errorminus(separator)upperlimit(separator)lowerlimit
Creates a string intended for a machine to read ( ex gnuplot ) prints as follows value ( separator ) errorplus ( separator ) errorminus ( separator ) upperlimit ( separator ) lowerlimit
"""
        Creates a string intended for a machine to read (ex, gnuplot)
        prints as follows
        value(separator)errorplus(separator)errorminus(separator)upperlimit(separator)lowerlimit

        if the value does not exist, the missingval is added instead

        Parameters
        ----------
        separator: str
            string used to separate values while printing
        missingval: str
            string to use for NoneType values

        Returns
        -------
        str
        """
self
separator
missingval