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

some files are not created during registration step #1

Open
louispivron opened this issue Apr 16, 2024 · 0 comments
Open

some files are not created during registration step #1

louispivron opened this issue Apr 16, 2024 · 0 comments

Comments

@louispivron
Copy link

louispivron commented Apr 16, 2024

Dear developers,

I've been trying to use the distribution code that you provided.

I'm running the script from my windows machine in VScode with python 3.9 and created a specific conda environment with necessary libraries (had to import the move function from the shutil library in addition).

Going through the registration step using Elastix, an error occurs in with the following command :

hu_a2s.registration(params=params_affine, result_name=file_a2s_affine, datatype='uint8')

the error being :

FileNotFoundError: [Errno 2] No such file or directory: './elastix_folder/workingDir/TransformParameters.0.txt'

Indeed the TransformParameters.0.txt is not being created and therefore raises an error when called in the following function :

move(self.elastix_path + r'/workingDir/TransformParameters.0.txt', os.path.join(self.result_path,result_name + r'.txt'))

The same goes for the expected result.0.nii.gz file in the command

move(self.elastix_path + r'/workingDir/result.0.nii.gz', os.path.join(self.result_path,result_name + r'.nii.gz'))

Could you provide some insight on how to create those files maybe modifying the affine_mouse_atlas_v6.1.txt file.

I can provide the log file from the registration here : https://filesender.switch.ch/filesender2/?s=download&token=23f95857-542a-4387-a57f-f4b987e7cfc7

the workingDir contains the following files :

Capture

Appreciate your help !

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