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

ZeroDivisionError: float division by zero - nifti_atlas on pnlpipe container #121

Open
kavandeloo97 opened this issue Dec 16, 2024 · 0 comments

Comments

@kavandeloo97
Copy link

nifti_atlas.txt

Command: (pnlpipe3) [root@974eb7a7ba4b anat]# nifti_atlas -d -t ~/myData/dec-2024/sub-0002/ses-1y1/anat/sub-0002_ses-1y1_desc-Xc_acq-T1w.nii.gz -o ~/myData/dec-2024/derivatives/sub-0002/ses-1y1/anat/ --train t1

Error (full output attached above):

/home/pnlbwh/pnlpipe/soft_dir/ANTs-bin-1195345/antsRegistrationSyNQuick.sh: line 606: 1122 Killed $COMMAND
1DIAGNOSTIC, 49, -7.267301962918e-01, 2.269298894817e-05, 5.3532e+02, 9.6492e+00,
1DIAGNOSTIC, 50, -7.268242113523e-01, 2.100148158536e-05, 5.4411e+02, 8.7891e+00,
Elapsed time (stage 2): 551.6

Total elapsed time: 585.7

2024-12-16 10:49:32,185 /home/pnlbwh/pnlNipype/exec/nifti_atlas INFO Making /tmp/tmpdksgbjjh/mask16.nii.gz
2024-12-16 10:49:34,916 /home/pnlbwh/pnlNipype/exec/nifti_atlas INFO Fuse warped labelmaps to compute output labelmaps
2024-12-16 10:49:34,939 /home/pnlbwh/pnlNipype/exec/nifti_atlas INFO Compute MI between warped images and target
MI between /tmp/tmpdksgbjjh/atlas16.nii.gz and target
Traceback (most recent call last):
File "/home/pnlbwh/pnlNipype/exec/nifti_atlas", line 341, in
AtlasCsv.run()
File "/home/pnlbwh/miniconda3/envs/pnlpipe3/lib/python3.6/site-packages/plumbum/cli/application.py", line 572, in run
retcode = inst.main(*tailargs)
File "/home/pnlbwh/pnlNipype/exec/nifti_atlas", line 335, in main
makeAtlases(self.target, trainingTable, self.out, self.fusions, int(self.threads), self.debug)
File "/home/pnlbwh/pnlNipype/exec/nifti_atlas", line 232, in makeAtlases
weights = weightsFromMIExp(mis, ALPHA_DEFAULT)
File "/home/pnlbwh/pnlNipype/exec/nifti_atlas", line 98, in weightsFromMIExp
factor = alpha / (max(mis) - min(mis))
ZeroDivisionError: float division by zero

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