gdataset.example_path: Create an example dataset on the fly
Description
Creates a small dataset in a temporary directory using the built-in
example database. This function has side effects: it calls
gdb.init_examples which resets the working database, and
it creates then deletes temporary tracks ('example_dataset_track') and
intervals ('example_dataset_intervals') in that database.
Usage
gdataset.example_path()
Arguments
Value
Path to the created dataset directory (in a temporary location)
Details
This function performs the following steps:
Calls gdb.init_examples() to set the working database
Removes any existing 'example_dataset_track' and 'example_dataset_intervals'
Creates temporary track and intervals in the example database
Saves them to a new dataset in a temporary directory
Removes the temporary track and intervals from the example database
This is primarily intended for use in examples and tests. Users should be
aware that calling this function will change their current working database.