예제 #1
0
def test_amalgamate():
    from asa_utils.Amalgamate import Amalgamate
    path = '/Users/idm/Code/academic/asa-utils/t/data/amalgam'
    a = Amalgamate(path)
    results = a.run()
    assert results
    as_str = a.as_string(results)
    assert as_str
예제 #2
0
def do_amalgamate():
    from asa_utils.Amalgamate import Amalgamate, EmptyDataFolder
    path = sys.argv[2]
    a = Amalgamate(path)
    try:
        (result, meta) = a.run()
        print a.as_string(result)
    except EmptyDataFolder:
        print "Data folder appears to contain no data files?"
예제 #3
0
def test_empty_amalgamate():
    from asa_utils.Amalgamate import Amalgamate, EmptyDataFolder
    path = '/Users/idm/Code/academic/asa-utils/t/data/empty'
    try:
        a = Amalgamate(path)
        results = a.run()
        assert False
    except EmptyDataFolder:
        pass
예제 #4
0
def test_removed_channels():
    from asa_utils.Amalgamate import Amalgamate
    path = '/Users/idm/Code/academic/asa-utils/t/data/rem_channels'
    a = Amalgamate(path)
    results = a.run()
    a.export_csv(results, '/tmp/out.csv')
예제 #5
0
def test_folder_with_errors():
    from asa_utils.Amalgamate import Amalgamate
    path = '/Users/idm/Code/academic/asa-utils/t/data/contains_errors'
    a = Amalgamate(path)
    results = a.run()
    assert results