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?"
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
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')
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