skbio.util.testing.get_data_path

skbio.util.testing.get_data_path(fn)[source]

Return path to filename fn in the data folder.

During testing it is often necessary to load data files. This function returns the full path to files in the data subfolder.

Parameters:

fn : str

File name.

Returns:

str

Inferred absolute path to the test data for the module where get_data_path(fn) is called.

Notes

The requested path may not point to an existing file, as its existence is not checked.