コード例 #1
0
ファイル: read.py プロジェクト: ryanraaum/oldowan.arlequin
def read_arlequin(something, what='guess', raw=False):
    """Read the Arlequin input format."""
    items = []

    for entry in iterate_arlequin(something, what, raw):
        items.append(entry)

    return items
コード例 #2
0
def test_iterate_arlequin_with_raw_return():
    """iterate_arlequin with raw option"""
    for entry in iterate_arlequin(SNPS_TWO_POPS_TEXT, raw=True):
        assert isinstance(entry, str)
コード例 #3
0
def test_iterate_arlequin_with_dict_return():
    """iterate_arlequin with default options"""
    for entry in iterate_arlequin(SNPS_TWO_POPS_TEXT):
        assert isinstance(entry, dict)