Пример #1
0
def place_reports_only(expnum, start_time, end_time):
    destination = experiment_path[expnum]
    event_data_dicts = smysql.retrieve_event_description(start_time, end_time, list_of_sites=mySQL_sitedef[expnum])
    default_folder = smysql.retrieve_data_folder()

    # Look at every event in the database between time constraints.
    for event in event_data_dicts:
        site_evt_number = event[cfg_evt_siteEvt]
        site_event_id = event[cfg_evt_evid]
        file_data_dicts = smysql.retrieve_file_location(site_evt_number, mySQL_stadef[expnum])
        current_trial = caching.trial_num_from_evid(expnum, site_event_id)
        trial_doc_folder = "%sTrial-%s/Documentation/" % (destination, current_trial)
        report.create_report(trial_doc_folder, event)
        create_filereports(file_data_dicts, event, destination, current_trial, trial_doc_folder, default_folder)
Пример #2
0
def place_reports_only(expnum, start_time, end_time):
    '''Used in the case that the log gives warning that individual channel information was missing. This allows 
    the used to re-create the report.csv files without having to completely re-do the upload process.'''
    destination         = experiment_path[expnum]                    
    mysqldb             = bui.conn
    event_data_dicts    = mysqldb.retrieve_event_description(start_time, end_time, list_of_sites = mySQL_sitedef[expnum])
    default_folder      = mysqldb.retrieve_data_folder() 
    for event in event_data_dicts:    
        site_evt_number      = event[cfg_evt_siteEvt]
        site_event_id        = event[cfg_evt_evid]
        file_data_dicts      = mysqldb.retrieve_file_location(site_evt_number,mySQL_stadef[expnum])
        current_trial        = caching.trial_num_from_evid(expnum, site_event_id)
        trial_doc_folder     = "%sTrial-%s/Documentation/" % (destination, current_trial)
        report.create_report(trial_doc_folder, event)
        create_filereports(file_data_dicts, 
                           event, 
                           destination, 
                           current_trial, 
                           trial_doc_folder, 
                           default_folder)