def METHOD_NAME(self,vals):
    print('oooo invoking: timeInterval with vals', vals);
    debug=self.parseBoolean(vals['debug'])
    oupath = vals['oupath']
    if oupath:
        oupath = bids_utils.pathChk(oupath)
        oup_f = oupath + 'new_demogr_file.txt'
        oup_l = oupath + 'new_demogr_file_error.txt'
    else:
        oup_f = self.inputs['demographics'].getFilename().replace(".txt", "_biswebpy_timeInterval.txt")
        oup_l = self.inputs['demographics'].getFilename().replace(".txt", "_biswebpy_timeInterval_error.txt")
    try:
        odata, elog = dgrti.demogrTimeInterval(self.inputs['demographics'], \
        vals['startdate'], vals['enddate'], vals['outputkey'], vals['identifier'], debug)
    except:
        e = sys.exc_info()[0]
        print('---- Failed to invoke algorithm ----',e);
        return False
    self.outputs['output'] = bids_objects.bidsText();
    self.outputs['errorlog'] = bids_objects.bidsText();
    self.outputs['output'].create(odata)
    self.outputs['errorlog'].create(elog)
    self.outputs['output'].save(oup_f)
    self.outputs['errorlog'].save(oup_l)
    return True