LingPy

lingpy.test.test.list_files

lingpy.test.test.list_files(filetype, dataset='*')

List all files in the testset that correspond to a certain filetype.

Parameters :

filetype : { ‘lxs’, ‘msa’, ‘msq’, ‘psa’, ‘psq’ }

The extension of the files that shall be listed.

dataset : str (default=’*’)

A string which can be used to specify the dataset closer. One can use the Unix wildcard syntax in order to narrow down which files to look for.

Examples

>>> from lingpy import *
>>> list_files('msa','sindial*')
sindial_3_1.msa
sindial_3_2.msa
sindial_3_3.msa
sindial_6_1.msa

Previous topic

lingpy.test.test.get_file

Next topic

Evaluation of Automatic Analyses (evaluate)