<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Cécile,
<div class=""><br class="">
</div>
<div class="">I have indeed a different version from v23.0. This is the version of the MRI.pm I’m using right now:</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/SPINEProject/Loris-MRI/blob/master/uploadNeuroDB/NeuroDB/MRI.pm" class="">https://github.com/SPINEProject/Loris-MRI/blob/master/uploadNeuroDB/NeuroDB/MRI.pm</a></div>
<div class=""><br class="">
</div>
<div class="">I believe I used this after a fix you wrote. </div>
<div class=""><br class="">
</div>
<div class="">As you pointed out the inputs for the function findScannerID in the file MRI.pm has changed as I don’t have the parameter <span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(255, 248, 197); text-decoration-thickness: initial;" class="">$register_new</span><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""> which
 is why the $db is zero:</span></font></div>
<div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
</span></font></div>
<div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><a href="https://github.com/SPINEProject/Loris-MRI/blob/19f469cce904ebe93ba5f641533e4c0ef39fadab/uploadNeuroDB/register_processed_data.pl#L264" class="">https://github.com/SPINEProject/Loris-MRI/blob/19f469cce904ebe93ba5f641533e4c0ef39fadab/uploadNeuroDB/register_processed_data.pl#L264</a></span></font></div>
<div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
</span></font></div>
<div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><a href="https://github.com/SPINEProject/Loris-MRI/blob/19f469cce904ebe93ba5f641533e4c0ef39fadab/uploadNeuroDB/NeuroDB/MRI.pm#L938" class="">https://github.com/SPINEProject/Loris-MRI/blob/19f469cce904ebe93ba5f641533e4c0ef39fadab/uploadNeuroDB/NeuroDB/MRI.pm#L938</a></span></font></div>
<div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""> </span></font></div>
<div class="">
<div><font color="#000000" class="">I will upgrade my code to the v23.0-release and test. I’ll keep <span style="caret-color: rgb(0, 0, 0);" class="">you posted.</span></font></div>
<div><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
</span></font></div>
<div><font color="#000000" class="">Best,</font></div>
<div><font color="#000000" class="">Alfredo.</font></div>
<div><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
</span></font>
<blockquote type="cite" class="">
<div class="">On Aug 8, 2022, at 5:02 PM, Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@BWH.HARVARD.EDU" class="">AMORALESPINZON@BWH.HARVARD.EDU</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">       External Email - Use Caution        <br class="">
<br class="">
Dear LorisDev team,<br class="">
<br class="">
I am uploading segmentations to images already uploaded into LORIS using the script "register_processed_data.pl". I have used this script before but now I'm getting the following errors:<br class="">
<br class="">
===<br class="">
Use of uninitialized value $patientName in pattern match (m//) at /anom_project/bin/mri/uploadNeuroDB/NeuroDB/MRI.pm line 1112.<br class="">
Use of uninitialized value $patientName in pattern match (m//) at /anom_project/bin/mri/uploadNeuroDB/NeuroDB/MRI.pm line 1112.<br class="">
Attribute (db) does not pass the type constraint because: Validation failed for 'NeuroDB::Database' with value 0 (not isa NeuroDB::Database) at /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Moose/Object.pm line 24<br class="">
       Moose::Object::new('NeuroDB::objectBroker::MriScannerOB', 'db', 0) called at /anom_project/bin/mri/uploadNeuroDB/NeuroDB/MRI.pm line 961<br class="">
       NeuroDB::MRI::findScannerID(undef, undef, undef, undef, 0, 'REF(0x3ca3fc0)', 0, 'NeuroDB::Database=HASH(0x3d7c8b0)') called at /anom_project/bin/mri/uploadNeuroDB/register_processed_data.pl line 266<br class="">
Argument "8Exiting now\n\n" isn't numeric in right bitshift (>>) at /anom_project/bin/mri/uploadNeuroDB/run_insert_TransSegs_IPMSA.pl line 310.<br class="">
Argument "\nAn error occurred when running register_processed_data..." isn't numeric in right bitshift (>>) at /anom_project/bin/mri/uploadNeuroDB/run_insert_TransSegs_IPMSA.pl line 310.<br class="">
0fileLikeName:%710881_m00_t1c%<br class="">
===<br class="">
<br class="">
This is command line I'm executing:<br class="">
===<br class="">
register_processed_data.pl  -profile prod  -sourcePipeline T2Vol  -tool T2Vol  -pipelineDate 2022-08-08  -coordinateSpace ISPC-t2w  -outputType ct2f  -inputFileIDs 571801  -sourceFileID 571801  -scanType ct2f  -file /anom_project/file.mnc.gz<br class="">
===<br class="">
<br class="">
I am using v23.0 of Loris-MRI and LORIS v23.0.2.<br class="">
<br class="">
Any ideas on how can I solve this issue? Do I have to upgrade Loris-MRI?<br class="">
<br class="">
Best regards,<br class="">
Alfredo.<br class="">
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
<a href="https://secure-web.cisco.com/19h-WI4bL9bhWPz2g4IhIeGIm-joY76HG6T7-fcKvCs55XhGnaodtPRXsSyPcM712gR7ToIl0jR-fKYH18XubADNi9bcL4jsRgeOVrdnOYtXi8hlqpJ5a6K1aTRVL-V4gR9LyDcbAj7aqaUSszxlinYUiA0HnhjCryWRRa94PsduhK_FqS-LsOf9H5vTJ7aHrUNqd8V26SrPCJe1dqrJBq1djHowJvJdbPLZXuE4EtPqdfsjNaI4CA7av6FORz1Zo1G8QQu4ZLwQv23jSrNzrIfP9dCGnXQnOHAhbUhOz88_EIQPU3XdAHEeV92Ehpy-i3dyWzAkkcDe_bPunTQWlaA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline" class="">
https://secure-web.cisco.com/19h-WI4bL9bhWPz2g4IhIeGIm-joY76HG6T7-fcKvCs55XhGnaodtPRXsSyPcM712gR7ToIl0jR-fKYH18XubADNi9bcL4jsRgeOVrdnOYtXi8hlqpJ5a6K1aTRVL-V4gR9LyDcbAj7aqaUSszxlinYUiA0HnhjCryWRRa94PsduhK_FqS-LsOf9H5vTJ7aHrUNqd8V26SrPCJe1dqrJBq1djHowJvJdbPLZXuE4EtPqdfsjNaI4CA7av6FORz1Zo1G8QQu4ZLwQv23jSrNzrIfP9dCGnXQnOHAhbUhOz88_EIQPU3XdAHEeV92Ehpy-i3dyWzAkkcDe_bPunTQWlaA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline</a>
 <<a href="https://secure-web.cisco.com/19h-WI4bL9bhWPz2g4IhIeGIm-joY76HG6T7-fcKvCs55XhGnaodtPRXsSyPcM712gR7ToIl0jR-fKYH18XubADNi9bcL4jsRgeOVrdnOYtXi8hlqpJ5a6K1aTRVL-V4gR9LyDcbAj7aqaUSszxlinYUiA0HnhjCryWRRa94PsduhK_FqS-LsOf9H5vTJ7aHrUNqd8V26SrPCJe1dqrJBq1djHowJvJdbPLZXuE4EtPqdfsjNaI4CA7av6FORz1Zo1G8QQu4ZLwQv23jSrNzrIfP9dCGnXQnOHAhbUhOz88_EIQPU3XdAHEeV92Ehpy-i3dyWzAkkcDe_bPunTQWlaA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline" class="">https://secure-web.cisco.com/19h-WI4bL9bhWPz2g4IhIeGIm-joY76HG6T7-fcKvCs55XhGnaodtPRXsSyPcM712gR7ToIl0jR-fKYH18XubADNi9bcL4jsRgeOVrdnOYtXi8hlqpJ5a6K1aTRVL-V4gR9LyDcbAj7aqaUSszxlinYUiA0HnhjCryWRRa94PsduhK_FqS-LsOf9H5vTJ7aHrUNqd8V26SrPCJe1dqrJBq1djHowJvJdbPLZXuE4EtPqdfsjNaI4CA7av6FORz1Zo1G8QQu4ZLwQv23jSrNzrIfP9dCGnXQnOHAhbUhOz88_EIQPU3XdAHEeV92Ehpy-i3dyWzAkkcDe_bPunTQWlaA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline</a>>
 .<br class="">
Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means
 you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
Loris-dev mailing list<br class="">
<a href="mailto:Loris-dev@bic.mni.mcgill.ca" class="">Loris-dev@bic.mni.mcgill.ca</a><br class="">
https://secure-web.cisco.com/1EXLcGfORQAU8J_0p-Luc-Ta71zLwOwiyeeWg04DlORafYE3CSSrG4ZZv-bJVlTBKD9Droe23LCgIPzkttkbwD-d5FwIlXTyaJxmlV22YtiqQ3IIqv9_ZCtASSw-5Vvp3-yRgN2DQ6v6Ij_gMiHdPvVMfRJrZHTN85-fRWb9PfDXZLbg_d3Dw0sCl6BNtnoiv1kCf60mJqrJmo1TPJkAPR45IN9bAcXqgFkBv5__Wm7EGqgm3qJgUEyM8oqLQfp5xwD1zFPJy0YUUpz-336qgWhpnwXQxlK0_MKmjI9v8XbW_TQvEQ9aKHHicBDnnn7KajnTmUpH7I40YyRxRlRjZoA/https%3A%2F%2Fmailman.bic.mni.mcgill.ca%2Fmailman%2Flistinfo%2Floris-dev<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<p class="MsoNormal">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 <a href="https://www.massgeneralbrigham.org/complianceline">https://www.massgeneralbrigham.org/complianceline</a> .</p><br>
<p class="MsoNormal">Please note that this e-mail is not secure
(encrypted).  If you do not wish to continue communication over
unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you
understand and accept this risk and wish to continue to communicate over
unencrypted e-mail.  </p></body>
</html>