Пример #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