Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply and copy-exemplars functions can't parse command-line input correctly #340

Open
gabridele opened this issue Dec 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gabridele
Copy link

Summary

Following the Example Walkthrough, when I tried to run the apply function, by putting the filenames as positional arguments instead of their paths, the terminal raised an issue claiming that those paths didn't exist. As far as I understood, the reason behind this is the type of parsing being carried out: in the cli.py script, the parser makes use of _is_file function defined in line 26, that calls _path_exists function at line 19 that checked for the existence of the path. I ran into the same issue when I was trying to run the copy-exemplars command.

Additional details

  • CuBIDS version: 1.1.1 (git cloned latest version as of November 25th)
  • Datalad version: 1.1.4

What were you trying to do?

I was trying to run the apply and copy-exemplars functions

What did you expect to happen?

I expected the apply function to apply the changes I suggested. Likewise, I expected copy-exemplars command to produce an exemplar dataset.

What actually happened?

Program couldn't find these files just from their filename (as it's explained in the documentation). Also, in apply when I provided the name of the directory of the exemplar dataset (directory to be created), it raised an error telling me that the path doesn't exist. To my understanding of the tutorial, the user should be able to provide the name of the directory and the cubids library would take care of creating it and turning it into a datalad dataset.

Reproducing the bug

1 2 3
@gabridele gabridele added the bug Something isn't working label Dec 14, 2024
@tsalo tsalo changed the title apply and copy-exemplars functions can't parse command-line input correctly apply and copy-exemplars functions can't parse command-line input correctly Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant