ndio/remote/neuroRemote.py
def reserve_ids(self, token, channel, quantity):
        """
        Requests a list of next-available-IDs from the server.

        Arguments:
            quantity (int): The number of IDs to reserve

        Returns:
            int[quantity]: List of IDs you've been granted
        """
        quantity = str(quantity)
        url = self.url("{}/{}/reserve/{}/".format(token, channel, quantity))
        req = self.remote_utils.get_url(url)
        if req.status_code is not 200:
            raise RemoteDataNotFoundError('Invalid req: ' + req.status_code)
        out = req.json()
        return [out[0] + i for i in range(out[1])]
def reserve_ids(self, token, channel, quantity):
        """
        Requests a list of next-available-IDs from the server.

        Arguments:
            quantity (int): The number of IDs to reserve

        Returns:
            int[quantity]: List of IDs you've been granted
        """
        quantity = str(quantity)
        url = self.url("{}/{}/reserve/{}/".format(token, channel, quantity))
        req = self.remote_utils.get_url(url)
        if req.status_code is not 200:
            raise RemoteDataNotFoundError('Invalid req: ' + req.status_code)
        out = req.json()
        return [out[0] + i for i in range(out[1])]
def reserve_ids ( self , token , channel , quantity ) : quantity = str ( quantity ) url = self . url ( "{}/{}/reserve/{}/" . format ( token , channel , quantity ) ) req = self . remote_utils . get_url ( url ) if req . status_code is not 200 : raise RemoteDataNotFoundError ( 'Invalid req: ' + req . status_code ) out = req . json ( ) return [ out [ 0 ] + i for i in range ( out [ 1 ] ) ]
Requests a list of next-available-IDs from the server.

        Arguments:
            quantity (int): The number of IDs to reserve

        Returns:
            int[quantity]: List of IDs you've been granted
Requests a list of next - available - IDs from the server .