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

Elastix plugin: Cannot load parameter files #239

Open
ablot opened this issue Jul 18, 2019 · 7 comments
Open

Elastix plugin: Cannot load parameter files #239

ablot opened this issue Jul 18, 2019 · 7 comments

Comments

@ablot
Copy link
Contributor

ablot commented Jul 18, 2019

When trying to load any parameter file, the elastix plugin crashes (traceback below). The error comes from QtGui.QFileDialog.getOpenFileNames which, for me, returns the file list AND the filter selected. @raacampbell does the plugin work for you as is?

Traceback (most recent call last): File "/home/blota/Code/Python/Anatomy/lasagna/lasagna/plugins/registration_plugins/elastix_plugin.py", line 323, in loadParamFile_slot shutil.copyfile(path_to_param_file, self.tmpParamFiles[param_file_name]) File "/home/blota/Software/anaconda3/envs/lasagna/lib/python3.7/shutil.py", line 103, in copyfile if _samefile(src, dst): File "/home/blota/Software/anaconda3/envs/lasagna/lib/python3.7/shutil.py", line 88, in _samefile return os.path.samefile(src, dst) File "/home/blota/Software/anaconda3/envs/lasagna/lib/python3.7/genericpath.py", line 96, in samefile s1 = os.stat(f1) TypeError: stat: path should be string, bytes, os.PathLike or integer, not list

@ablot
Copy link
Contributor Author

ablot commented Jul 18, 2019

Would PR #240 break your setup @raacampbell ? If so we might have to play with Qt versions...
I use
Qt version: 5.12.2
SIP version: 4.19.15
PyQt version: 5.12.1

@raacampbell
Copy link
Collaborator

I will try tomorrow if I get a chance. Ping me back if I don't do it.

@apdals
Copy link

apdals commented Dec 12, 2019

I am using the master branch and have been receiving the same error as @ablot. I know that this issue was addressed and the code was changed in the development branch. I also see that the dev branch has been merged with the master branch not long ago. However, after looking through the code in the master branch, the change is no longer present. Was the change passed on? Was there a reason why the change was removed in the master? Thanks.

@nsteinme
Copy link

hey @raacampbell, @apdals is in my lab and we're stuck moving forward with lasagna because of this error. Any ideas of what we're doing wrong? Are other labs in IBL not having this problem, should we talk with Steven West about it, would he be able to help us?

@raacampbell
Copy link
Collaborator

Is it necessary to use the Elastix plugin in Lasagna? We aren't doing it, actually. We are running Elastix via a MATLAB script: https://github.com/SainsburyWellcomeCentre/ara_tools the command is ARAregister

I know that doesn't address the issue of this Lasagna plugin not working but at the moment I don't have plans to fix it.

@nsteinme
Copy link

Thanks Rob - we had missed that. We'll try the matlab script. Might be worth adding a note about this here? https://github.com/SainsburyWellcomeCentre/lasagna/wiki/Elastix-Image-Registation-Plugin

@raacampbell
Copy link
Collaborator

Good point. I've added the info.

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

4 participants