astroquery/gemini/urlhelper.py
def build_url(self, *args, **kwargs):
        """ Build a URL with the given args and kwargs as the query parameters.

        Parameters
        ----------
        args : list
            The arguments to be passed in the URL without a key.  Each of
            these is simply added as another component of the path in the url.
        kwargs : dict of key/value parameters for the url
            The arguments to be passed in key=value form.
        Returns
        -------
        response : `string` url to execute the query
        """
        qa_parm = ''
        eng_parm = ''

        # List of args that specify a QA state
        qa_parameters = (
            'NotFail',
            'AnyQA',
            'Pass',
            'Lucky',
            'Win',
            'Usable',
            'Undefind',
            'Fail'
        )

        # List of args that specify engineering data (or not)
        engineering_parameters = (
            'notengineering',
            'engineering',
            'includeengineering'
        )

        if not any(eng_parm in args for eng_parm in engineering_parameters):
            eng_parm = 'notengineering/'
        if not any(qa_parm in args for qa_parm in qa_parameters):
            qa_parm = 'NotFail/'
        url = "%s/jsonsummary/%s%s" % (self.server, eng_parm, qa_parm)
        url = url[:-1]  # strip trailing /

        for arg in args:
            url = "%s/%s" % (url, arg)
        for key, value in kwargs.items():
            if key != "orderby":
                handler = handlers.get(key, handle_keyword_arg)
                url = handler(url, key, value)
        if "orderby" in kwargs:
            url = "%s?orderby=%s" % (url, kwargs["orderby"])
        return url
 Build a URL with the given args and kwargs as the query parameters.

        Parameters
        ----------
        args : list
            The arguments to be passed in the URL without a key.  Each of
            these is simply added as another component of the path in the url.
        kwargs : dict of key/value parameters for the url
            The arguments to be passed in key=value form.
        Returns
        -------
        response : `string` url to execute the query
        
Build a URL with the given args and kwargs as the query parameters.
Parameters

args : list
The arguments to be passed in the URL without a key.  Each of
these is simply added as another component of the path in the url.
kwargs : dict of key/value parameters for the url
The arguments to be passed in key=value form.
Returns

response : `string` url to execute the query
Build a URL with the given args and kwargs as the query parameters . Parameters args : list The arguments to be passed in the URL without a key . Each of these is simply added as another component of the path in the url . kwargs : dict of key / value parameters for the url The arguments to be passed in key = value form . Returns response : ` string ` url to execute the query
def build_url(self, *args, **kwargs):
        qa_parm = ''
        eng_parm = ''
        qa_parameters = (
            'NotFail',
            'AnyQA',
            'Pass',
            'Lucky',
            'Win',
            'Usable',
            'Undefind',
            'Fail'
        )
        engineering_parameters = (
            'notengineering',
            'engineering',
            'includeengineering'
        )
        if not any(eng_parm in args for eng_parm in engineering_parameters):
            eng_parm = 'notengineering/'
        if not any(qa_parm in args for qa_parm in qa_parameters):
            qa_parm = 'NotFail/'
        url = "%s/jsonsummary/%s%s" % (self.server, eng_parm, qa_parm)
        url = url[:-1]  
        for arg in args:
            url = "%s/%s" % (url, arg)
        for key, value in kwargs.items():
            if key != "orderby":
                handler = handlers.get(key, handle_keyword_arg)
                url = handler(url, key, value)
        if "orderby" in kwargs:
            url = "%s?orderby=%s" % (url, kwargs["orderby"])
        return url
def build_url ( self , * args , ** kwargs ) : qa_parm = '' eng_parm = '' qa_parameters = ( 'NotFail' , 'AnyQA' , 'Pass' , 'Lucky' , 'Win' , 'Usable' , 'Undefind' , 'Fail' ) engineering_parameters = ( 'notengineering' , 'engineering' , 'includeengineering' ) if not any ( eng_parm in args for eng_parm in engineering_parameters ) : eng_parm = 'notengineering/' if not any ( qa_parm in args for qa_parm in qa_parameters ) : qa_parm = 'NotFail/' url = "%s/jsonsummary/%s%s" % ( self . server , eng_parm , qa_parm ) url = url [ : - 1 ] for arg in args : url = "%s/%s" % ( url , arg ) for key , value in kwargs . items ( ) : if key != "orderby" : handler = handlers . get ( key , handle_keyword_arg ) url = handler ( url , key , value ) if "orderby" in kwargs : url = "%s?orderby=%s" % ( url , kwargs [ "orderby" ] ) return url
Build a URL with the given args and kwargs as the query parameters.
Build a URL with the given args and kwargs as the query parameters .
""" Build a URL with the given args and kwargs as the query parameters.

        Parameters
        ----------
        args : list
            The arguments to be passed in the URL without a key.  Each of
            these is simply added as another component of the path in the url.
        kwargs : dict of key/value parameters for the url
            The arguments to be passed in key=value form.
        Returns
        -------
        response : `string` url to execute the query
        """ # List of args that specify a QA state # List of args that specify engineering data (or not) # strip trailing /
self