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

Path object is actually a string #668

Open
thibaultdvx opened this issue Oct 10, 2024 · 0 comments
Open

Path object is actually a string #668

thibaultdvx opened this issue Oct 10, 2024 · 0 comments

Comments

@thibaultdvx
Copy link
Collaborator

Ass mentioned in #662, there is an issue with the expression any(["_run-" not in f.name for f in files]) line 668 of clinicadl/utils/clinica_utils.py:

if len(files) < 2 or any(["_run-" not in f.name for f in files]):

It seems that files does not contain only Path objects, which raises the following error: AttributeError: 'str' object has no attribute 'name'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant