ndio/remote/neuroRemote.py
def merge_ids(self, token, channel, ids, delete=False):
        """
        Call the restful endpoint to merge two RAMON objects into one.

        Arguments:
            token (str): The token to inspect
            channel (str): The channel to inspect
            ids (int[]): the list of the IDs to merge
            delete (bool : False): Whether to delete after merging.

        Returns:
            json: The ID as returned by ndstore
        """
        url = self.url() + "/merge/{}/".format(','.join([str(i) for i in ids]))
        req = self.remote_utils.get_url(url)
        if req.status_code is not 200:
            raise RemoteDataUploadError('Could not merge ids {}'.format(
                                        ','.join([str(i) for i in ids])))
        if delete:
            self.delete_ramon(token, channel, ids[1:])
        return True
def merge_ids(self, token, channel, ids, delete=False):
        url = self.url() + "/merge/{}/".format(','.join([str(i) for i in ids]))
        req = self.remote_utils.get_url(url)
        if req.status_code is not 200:
            raise RemoteDataUploadError('Could not merge ids {}'.format(
                                        ','.join([str(i) for i in ids])))
        if delete:
            self.delete_ramon(token, channel, ids[1:])
        return True
def merge_ids ( self , token , channel , ids , delete = False ) : url = self . url ( ) + "/merge/{}/" . format ( ',' . join ( [ str ( i ) for i in ids ] ) ) req = self . remote_utils . get_url ( url ) if req . status_code is not 200 : raise RemoteDataUploadError ( 'Could not merge ids {}' . format ( ',' . join ( [ str ( i ) for i in ids ] ) ) ) if delete : self . delete_ramon ( token , channel , ids [ 1 : ] ) return True
Call the restful endpoint to merge two RAMON objects into one.

        Arguments:
            token (str): The token to inspect
            channel (str): The channel to inspect
            ids (int[]): the list of the IDs to merge
            delete (bool : False): Whether to delete after merging.

        Returns:
            json: The ID as returned by ndstore
Call the restful endpoint to merge two RAMON objects into one .