Exemplo n.º 1
0
def batch1():
    print("\n### Trial 1")
    p = os.path.abspath("../data/1-07/1-07.doc")
    wipe_db_tables()
    doc_to_database(p)
    check_vars_not_in_labelled_csv(p)
    inspect_labelled_output(p)
Exemplo n.º 2
0
def batch1():
    print("\n### Trial 1")
    p = os.path.abspath("../data/1-07/1-07.doc")
    wipe_db_tables()       
    doc_to_database(p)    
    check_vars_not_in_labelled_csv(p)
    inspect_labelled_output(p)
Exemplo n.º 3
0
def import_csv(data_folder):
    csv, spec, cfg = get_filenames(data_folder)
    wipe_db_tables()
    # to_database(csv, spec)
    to_database(csv, spec, cfg)
    db_dump()    
    dump_var_list_explained()
Exemplo n.º 4
0
def batch3():
    print("\n### Trial 3")
    # omit making raw csv - as it is long
    c = os.path.abspath("../data/ind06/tab.csv")  #all_tab got.csv
    t = make_csv_with_labels(c)
    wipe_db_tables()
    csv_to_database(t)
    inspect_labelled_output(c)
    check_vars_not_in_labelled_csv(c)
Exemplo n.º 5
0
def batch2():
    print("\n### Trial 2")
    # omit making raw csv - as it is long
    c = os.path.abspath("../data/minitab/minitab.csv")
    t = make_csv_with_labels(c)
    wipe_db_tables()
    csv_to_database(t)
    check_vars_not_in_labelled_csv(c)
    inspect_labelled_output(c)
Exemplo n.º 6
0
def batch3():
    print("\n### Trial 3")
    # omit making raw csv - as it is long 
    c = os.path.abspath("../data/ind06/tab.csv") #all_tab got.csv
    t = make_csv_with_labels(c)
    wipe_db_tables()       
    csv_to_database(t)    
    inspect_labelled_output(c)
    check_vars_not_in_labelled_csv(c)
Exemplo n.º 7
0
def batch2():
    print("\n### Trial 2")
    # omit making raw csv - as it is long 
    c = os.path.abspath("../data/minitab/minitab.csv")
    t = make_csv_with_labels(c)
    wipe_db_tables()       
    csv_to_database(t) 
    check_vars_not_in_labelled_csv(c)
    inspect_labelled_output(c)