-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
Would PR #240 break your setup @raacampbell ? If so we might have to play with Qt versions... |
I will try tomorrow if I get a chance. Ping me back if I don't do it. |
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. |
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? |
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 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. |
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 |
Good point. I've added the info. |
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
The text was updated successfully, but these errors were encountered: