External Email - Use Caution
Dear FreeSurfer Developers, We are interested in implementing " mri_sclimbic_seg " from FreeSurfer 7.3.2 and are having trouble getting it to finish processing. When I tried to runmri_sclimbic_seg. I keep getting a python error and the process never finishes.I searched through the forum and it said that this was a known error and thatthere was a patch. When I installed the patch I got the exact same error.
The error message is: “ValueError: operands could not bebroadcast together with shapes (4,) (3,)”
The link to the forum post is:
https://secure-web.cisco.com/1BI_B41UWHwWJM3wQhzsqKLiN64Mdzk_AasgGunt7xAFi2T...
We tried running it on the test subject “bert” just to makesure the issue is not with our test scan and I got the same error.
We are getting the erroreven after installing the patch. Here are the details of the commandline I used to run it and the error message:
Command line:
mri_sclimbic_seg --s bert --o/usr/local/freesurfer/7.3.2-1/subjects/bert/mri/mri_sclimbic_seg.mgz--write_volumes --write_qa_stat
Error:
Traceback (most recent call last):
File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg",line 1049, in <module>
main()
File"/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line232, in main
segmenter.process_files(**params)
File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg",line 578, in process_files
post, seg, vox_counts, volumes,mean_probs = self.segment(image)
File"/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line498, in segment
conformed = self.preprocess(image)
File"/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line490, in preprocess
processed =image.conform(shape=(*self.inshape, self.nchannels), voxsize=1.0,orientation='RAS', dtype='float32', copy=False)
File "/usr/local/freesurfer/7.3.2-1/python/lib/python3.8/site-packages/surfa/image/framed.py",line 574, in conform
conformed = conformed.reshape(shape,copy=False)
File"/usr/local/freesurfer/7.3.2-1/python/lib/python3.8/site-packages/surfa/image/framed.py",line 515, in reshape
delta = (np.array(shape) -np.array(self.baseshape)) / 2
ValueError: operands could not be broadcast together withshapes (4,) (3,)
We are beginning to study professional and amateur fighters, and we suspect that shearing/disruptions to the septum pellucidum may have downstream consequences to the connectivity/DTI measures in the septal nuclei, mammilary bodies, etc.
Thanks in advance for any help or comments you can provide.
Sincerely
-Randy
External Email - Use Caution
Hi all,
I have the same issue on Ubuntu 22.04, patch is installed. Many thanks,
Yann
On 20 Dec 2022, at 04:29, daedalus39@aol.com wrote:
External Email - Use CautionDear FreeSurfer Developers,
We are interested in implementing " mri_sclimbic_seg " from FreeSurfer 7.3.2 and are having trouble getting it to finish processing.
When I tried to run mri_sclimbic_seg. I keep getting a python error and the process never finishes. I searched through the forum and it said that this was a known error and that there was a patch. When I installed the patch I got the exact same error.
The error message is: “ValueError: operands could not be broadcast together with shapes (4,) (3,)” The link to the forum post is: MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1AOO2G3Y9tIa3C9R7SheXdTmfFlIb7ZE6S7sOyW05Pn5KgU... https://secure-web.cisco.com/1BI_B41UWHwWJM3wQhzsqKLiN64Mdzk_AasgGunt7xAFi2Ti_IjaFqr8pVIuvUSD-ZLVEYI580vCnKVFO3EYgxKHmRJ2JwpJgt3IrlnVqXehDvlnA8m_QLcspvwOdEyuleG-SRP1hVpkuenwO4m4bfOK032XeTJ-p-yONPUHX8tZqDwR92JwPKU0O4ndK6mrXvnLvHl5tb0-tWBv59QOli-_OgfEo4ussU6uuv1voORx52Y1Cv4lPDV1kOknbYt_fapRm5e5mIgyQlFZfvQH2LXhv8ygBuozck_eNWt6s8tElJMnagVvzHCElOjzFYRnL_c_5eZh4VSDBJvRl1YwX7Q/https%3A%2F%2Fwww.mail-archive.com%2Ffreesurfer%40nmr.mgh.harvard.edu%2Fmsg73652.html
We tried running it on the test subject “bert” just to make sure the issue is not with our test scan and I got the same error.
We are getting the error even after installing the patch. Here are the details of the command line I used to run it and the error message:
Command line: mri_sclimbic_seg --s bert --o /usr/local/freesurfer/7.3.2-1/subjects/bert/mri/mri_sclimbic_seg.mgz --write_volumes --write_qa_stat
Error: Traceback (most recent call last): File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 1049, in <module> main() File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 232, in main segmenter.process_files(**params) File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 578, in process_files post, seg, vox_counts, volumes, mean_probs = self.segment(image) File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 498, in segment conformed = self.preprocess(image) File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 490, in preprocess processed = image.conform(shape=(*self.inshape, self.nchannels), voxsize=1.0, orientation='RAS', dtype='float32', copy=False) File "/usr/local/freesurfer/7.3.2-1/python/lib/python3.8/site-packages/surfa/image/framed.py", line 574, in conform conformed = conformed.reshape(shape, copy=False) File "/usr/local/freesurfer/7.3.2-1/python/lib/python3.8/site-packages/surfa/image/framed.py", line 515, in reshape delta = (np.array(shape) - np.array(self.baseshape)) / 2 ValueError: operands could not be broadcast together with shapes (4,) (3,)
We are beginning to study professional and amateur fighters, and we suspect that shearing/disruptions to the septum pellucidum may have downstream consequences to the connectivity/DTI measures in the septal nuclei, mammilary bodies, etc.
Thanks in advance for any help or comments you can provide.
Sincerely
-Randy
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1xm9U-U9fxPeniR-eyucnOvn2u9TwQEw0fizLmts2HAtkaV... The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1qgz4kgBXfgANC7q4_rIIhlCtGxv9lmKbUgHtHh92EToQgZ... https://secure-web.cisco.com/1qgz4kgBXfgANC7q4_rIIhlCtGxv9lmKbUgHtHh92EToQgZRk2Jp5SsI1SkC9T_rVk-a1Duen0CvXVx7gUWMI5YmBKVHu_yRkJk0xuSy481rCAOvWLE2_hFWgQOsWSjmS1a0YLZI6sDy8QcsA1RF6uIWFdBScFCsrMq8K_Q-ru1pZ8Fj9nTA_ei_M4ifmGJRm_NIhcSOOehcBBEHF7JAQlAXZCGllKrrwxuadV0A52kceKbK8rcN0uglNcYcFnm6TRMuuwrxs4GfugvCXoTtjL2xb5KW2sx1-emAhu9CJrZi5nxNdIemX4GSNXncPmp3IxOXw4mmG2TTUfGGyKPONBw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline .
Hi Randy and Yann,
For this fix you will have to update the surfa package that ships with Freesurfer. You can do this by: fspython -m pip install --upgrade surfa
Best, Avnish ________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Yann Quidé yannquide@gmail.com Sent: Tuesday, December 20, 2022 3:25 PM To: Freesurfer support list freesurfer@nmr.mgh.harvard.edu Cc: daedalus39@aol.com daedalus39@aol.com Subject: Re: [Freesurfer] mri_sclimbic_seg patch issue?
External Email - Use Caution
Hi all,
I have the same issue on Ubuntu 22.04, patch is installed. Many thanks,
Yann
On 20 Dec 2022, at 04:29, daedalus39@aol.commailto:daedalus39@aol.com wrote:
External Email - Use Caution
Dear FreeSurfer Developers,
We are interested in implementing " mri_sclimbic_seg " from FreeSurfer 7.3.2 and are having trouble getting it to finish processing.
When I tried to run mri_sclimbic_seg. I keep getting a python error and the process never finishes. I searched through the forum and it said that this was a known error and that there was a patch. When I installed the patch I got the exact same error.
The error message is: “ValueError: operands could not be broadcast together with shapes (4,) (3,)” The link to the forum post is: MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg73652.htmlhttps://secure-web.cisco.com/1BI_B41UWHwWJM3wQhzsqKLiN64Mdzk_AasgGunt7xAFi2Ti_IjaFqr8pVIuvUSD-ZLVEYI580vCnKVFO3EYgxKHmRJ2JwpJgt3IrlnVqXehDvlnA8m_QLcspvwOdEyuleG-SRP1hVpkuenwO4m4bfOK032XeTJ-p-yONPUHX8tZqDwR92JwPKU0O4ndK6mrXvnLvHl5tb0-tWBv59QOli-_OgfEo4ussU6uuv1voORx52Y1Cv4lPDV1kOknbYt_fapRm5e5mIgyQlFZfvQH2LXhv8ygBuozck_eNWt6s8tElJMnagVvzHCElOjzFYRnL_c_5eZh4VSDBJvRl1YwX7Q/https%3A%2F%2Fwww.mail-archive.com%2Ffreesurfer%40nmr.mgh.harvard.edu%2Fmsg73652.html
We tried running it on the test subject “bert” just to make sure the issue is not with our test scan and I got the same error.
We are getting the error even after installing the patch. Here are the details of the command line I used to run it and the error message:
Command line: mri_sclimbic_seg --s bert --o /usr/local/freesurfer/7.3.2-1/subjects/bert/mri/mri_sclimbic_seg.mgz --write_volumes --write_qa_stat
Error: Traceback (most recent call last): File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 1049, in <module> main() File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 232, in main segmenter.process_files(**params) File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 578, in process_files post, seg, vox_counts, volumes, mean_probs = self.segment(image) File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 498, in segment conformed = self.preprocess(image) File "/usr/local/freesurfer/7.3.2-1/python/scripts/mri_sclimbic_seg", line 490, in preprocess processed = image.conform(shape=(*self.inshape, self.nchannels), voxsize=1.0, orientation='RAS', dtype='float32', copy=False) File "/usr/local/freesurfer/7.3.2-1/python/lib/python3.8/site-packages/surfa/image/framed.py", line 574, in conform conformed = conformed.reshape(shape, copy=False) File "/usr/local/freesurfer/7.3.2-1/python/lib/python3.8/site-packages/surfa/image/framed.py", line 515, in reshape delta = (np.array(shape) - np.array(self.baseshape)) / 2 ValueError: operands could not be broadcast together with shapes (4,) (3,)
We are beginning to study professional and amateur fighters, and we suspect that shearing/disruptions to the septum pellucidum may have downstream consequences to the connectivity/DTI measures in the septal nuclei, mammilary bodies, etc.
Thanks in advance for any help or comments you can provide.
Sincerely
-Randy
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline https://www.massgeneralbrigham.org/complianceline .
freesurfer@nmr.mgh.harvard.edu