-
Notifications
You must be signed in to change notification settings - Fork 51
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
allow the insertion of violated scans #141
allow the insertion of violated scans #141
Conversation
############# Create minc-pics ############################# | ||
############################################################ | ||
unless ($create_minc_pics) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you want to create pics if the user spoecifies this option; this will do the opposite
(I just confirmed when running the command line: pics generated withOUT specifying -create_minc_pics)
when running the command we should not specify -create_minc_pics 1; it should simply be -create_minc_pics (without the 1) |
my ($acquisitionProtocol,$acquisitionProtocolID,@checks) | ||
= $utility->getAcquisitionProtocol( | ||
if(!defined($acquisitionProtocol)) { | ||
my ($acquisitionProtocol,$acquisitionProtocolID,@checks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$acquisitionProtocol is no longer accessible for the next check $utility->registerScanIntoDB() (line 416)
|
||
["-create_minc_pics", "boolean", 1, \$create_minc_pics, | ||
"Use this if invoked directly witouth tarchiveloader."], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The help should describe what the flag does, not when to use it. ("without" is also spelled wrong.)
I think:
|
|
This has to be tested together with the changes in: #149 Otherwise, it looks good. (a minor comment: I would modify the comment as to how to run it by removing the leading 'perl' before the rest of the command, as this is how tarchiveLoader script runs minc_insertion.pl) |
@MounaSafiHarab running instruction updated to not have the perl program in front. |
Acquisition_protocol as a parameter should only specify the acqusition_protocol, not also bypass the protocol enforcement. There should be two flags:
|
6437803
to
f263a54
Compare
Do the flags get passed between the scripts? If not, I'm not sure it would be a problem and |
Currently our imaging_upload_file.pl which runs all the insertion scripts calls tarchiveLoader withOUT the -force option. As we have it now, the -force is used to bypass tarchive validation checks in tarchiveLoader and bypass the isTarchiveValidated flag check in mri_upload table in the minc_insertion script. I think we have two options:
I personally prefer option (2)! it is more flags, but it is clearer I think! |
tested it on a file that would violate the mri_protocol_checks entry, with and without the -bypass_extra_file_checks flag, and it seems to be NOT inserting without the flag and inserting with the flag on. So I think this is all good now. |
This command will insert a violated scan since providing the acquisition protocol bypasses the protocol checks. If you also need to bypass the extra_file_checks use bypass_extra_file_checks
Please note the -create_minc_pics option as well since it is usually created by the tarchiveloader script.