Skip to content

Is there a way to show the "directory" tree of the files in each mne.datasets? #10799

Open
@adam2392

Description

@adam2392

Describe the new feature or enhancement

When a developer is using the datasets available in mne.datasets e.g. https://mne.tools/stable/generated/mne.datasets.sample.data_path.html

then usually they actually don't know what's in the dataset, so they probably would need to inspect the entire folder to understand the filenames and subdirectories. It would be nice to see the file directory within each docstring to enable a more seamless dev experience.

Describe your proposed implementation

Idk how, but somehow piping the output of something like print_dir_tree of each datasets into their respective docstring?

Describe possible alternatives

Someone can just download the dataset I suppose and inspect it.

Alternatively, perhaps this page can be updated and linked within each dataset function? https://mne.tools/stable/overview/datasets_index.html#datasets

Additional comments

The idea came up in mne-tools/mne-connectivity#100 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions