nbgwas_rest/__init__.py
def _get_task_parameters(self, taskpath):
        """
        Gets task parameters from TASK_JSON file as
        a dictionary
        :param taskpath:
        :return: task parameters
        :rtype dict:
        """
        taskparams = None
        try:
            taskjsonfile = os.path.join(taskpath, TASK_JSON)

            if os.path.isfile(taskjsonfile):
                with open(taskjsonfile, 'r') as f:
                    taskparams = json.load(f)
                if REMOTEIP_PARAM in taskparams:
                    # delete the remote ip
                    del taskparams[REMOTEIP_PARAM]
        except Exception:
            app.logger.exception('Caught exception getting parameters')
        return taskparams

        Gets task parameters from TASK_JSON file as
        a dictionary
        :param taskpath:
        :return: task parameters
        :rtype dict:
        
Gets task parameters from TASK_JSON file as
a dictionary
Gets task parameters from TASK_JSON file as a dictionary
def _get_task_parameters(self, taskpath):
        taskparams = None
        try:
            taskjsonfile = os.path.join(taskpath, TASK_JSON)
            if os.path.isfile(taskjsonfile):
                with open(taskjsonfile, 'r') as f:
                    taskparams = json.load(f)
                if REMOTEIP_PARAM in taskparams:
                    del taskparams[REMOTEIP_PARAM]
        except Exception:
            app.logger.exception('Caught exception getting parameters')
        return taskparams
def _get_task_parameters ( self , taskpath ) : taskparams = None try : taskjsonfile = os . path . join ( taskpath , TASK_JSON ) if os . path . isfile ( taskjsonfile ) : with open ( taskjsonfile , 'r' ) as f : taskparams = json . load ( f ) if REMOTEIP_PARAM in taskparams : del taskparams [ REMOTEIP_PARAM ] except Exception : app . logger . exception ( 'Caught exception getting parameters' ) return taskparams
Gets task parameters from TASK_JSON file as
a dictionary
Gets task parameters from TASK_JSON file as a dictionary
"""
        Gets task parameters from TASK_JSON file as
        a dictionary
        :param taskpath:
        :return: task parameters
        :rtype dict:
        """ # delete the remote ip
None
self
taskpath
None