LingPy

Testing the Algorithms (test)

The module provides functions to handle the testset provided by LingPy. The current testset consists of test files stored in the folder lingpy/test/tests/. These files are formatted according to the requirements for the different methods. Each specific format comes along with a specific file extension. Currently, there are the following five extensions:

  1. lxs – input files for the LexStat class.
  2. psq, psq – input files for the Pairwise class.
  3. msq, msa – input files for the Multiple class.

All these files can be easily accessed with help of some specific functions defined in this module.

Basic Functions

get_file(filename) Return a path to the filename in the testset.
list_files(filetype[, dataset]) List all files in the testset that correspond to a certain filetype.

Table Of Contents

Previous topic

lingpy.algorithm.misc.pid

Next topic

lingpy.test.test.get_file