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

Number of mincs inserted in the mri_upload could be wrong in some cases #119

Merged
merged 1 commit into from
Apr 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion uploadNeuroDB/NeuroDB/MRIProcessingUtility.pm
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,9 @@ sub registerScanIntoDB {
) = @_;
my $data_dir = $Settings::data_dir;
my $prefix = $Settings::prefix;
my $acquisitionProtocolID = undef;
my (
$acquisitionProtocolID,$Date_taken,$minc_protocol_identified,
$Date_taken,$minc_protocol_identified,
$file_path,$tarchive_path,$fileID
);
my $tarchive_srcloc = $tarchiveInfo->{'SourceLocation'};
Expand Down Expand Up @@ -720,6 +721,7 @@ sub registerScanIntoDB {
$tarchiveInfo->{'DateAcquired'}
);
}
return $acquisitionProtocolID;
}

################################################################
Expand Down
14 changes: 13 additions & 1 deletion uploadNeuroDB/minc_insertion.pl
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,24 @@
# to keep optionally controlled by the config file #############
################################################################

$utility->registerScanIntoDB(
my $acquisitionProtocolIDFromProd = $utility->registerScanIntoDB(
\$file, \%tarchiveInfo,$subjectIDsref,
$acquisitionProtocol, $minc, \@checks,
$reckless, $tarchive, $sessionID
);

if ((!defined$acquisitionProtocolIDFromProd)
&& (defined(&Settings::isFileToBeRegisteredGivenProtocol))
) {
$message = "\n --> The minc file cannot be registered ".
"since $acquisitionProtocol ".
"does not exist in $profile \n";
print LOG $message;
$notifier->spool('minc insertion', $message, 0,
'minc_insertion', $upload_id, 'Y',
$notify_notsummary);
exit 10;
}
################################################################
### Add series notification ####################################
################################################################
Expand Down