def download(dataset): with TemporaryDirectory() as tmpdir: urlretrieve( 'http://www.evolution.reading.ac.uk/Files/%s.zip' % NAME, tmpdir.joinpath('gbd.zip').as_posix()) with ZipFile(tmpdir.joinpath('gbd.zip').as_posix()) as zip: zip.extract(NAME + '.xlsx', tmpdir.as_posix()) xls2csv(tmpdir.joinpath(NAME + '.xlsx'), outdir=dataset.raw)
def download(dataset): with TemporaryDirectory() as tmpdir: urlretrieve(URL, tmpdir.joinpath('ds.xlsm').as_posix()) xls2csv(tmpdir.joinpath('ds.xlsm'), outdir=dataset.raw)
def download(dataset): xls2csv(dataset.raw.joinpath('numeral_010316.xlsx'), outdir=dataset.raw)
def download(dataset): xls2csv(dataset.raw.joinpath('Semitic.Wordlists.xls'), outdir=dataset.raw) xls2csv(dataset.raw.joinpath('Semitic.Codings.Multistate.xlsx'), outdir=dataset.raw)
def download(dataset, **kw): xls2csv(dataset.raw.joinpath('100item-phylo.xlsx'))
def download(dataset): xls2csv(dataset.raw.joinpath('AinuHattoriChiri.xlsx'), outdir=dataset.raw)
def download(dataset): xls2csv(dataset.raw.joinpath('supplementary.xlsx'), outdir=dataset.raw) xls2csv(dataset.raw.joinpath('Japonic_recovered.xlsx'), outdir=dataset.raw)