Skip to content

Add example et test for set_download_dir #197

Closed

Description

@sylvchev

In PR #195 a new function is introduced to select the download location of datasets: moabb.utils.set_download_dir()

We need to add an example and a unit test for this function

Activity

  1. changed the title [-]Add example et test for [/-] [+]Add example et test for set_download_dir[/+] on Jun 12, 2021
  2. peara commented on Aug 26, 2021

    @peara

    Hi, this is not directly related to the issue but the function set_download_dir seems to be err:
    https://github.com/NeuroTechX/moabb/blob/develop/moabb/utils.py#L52:L54

            if not osp.isfile(path):
                print("The path given does not exist, creating it..")
                os.makedirs(path)
    

    I think the condition should be ops.isdir(path).

  3. sylvchev commented on Aug 26, 2021

    @sylvchev
    MemberAuthor

    Thanks for your remark ! I'll correct it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions