-
Notifications
You must be signed in to change notification settings - Fork 52
[Everything] DIE MRI ALIAS DIE #1227
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
base: main
Are you sure you want to change the base?
Conversation
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.
Code LGTM. Haven't tested the changes. Some personal naming opinions but feel free to ignore or only partially apply if you prefer.
=cut | ||
|
||
|
||
sub getCenterNameFromCenterID { |
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.
Personal opinion: I would prefer this function to be named getSiteMRIAliasFromSiteID
.
- "center" is used pervasively in the LORIS code but Samir said in some LORIS / LORIS-MRI meeting that "site" is the preferred terminology. Since it does against the current code I guess this is somewhat controversial.
- A "site name" refers to another column in the database, so I think it would be less confusing to specify "MRIAlias" directly.
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.
I'll avoid the entire situation and change it to getMRIAliasFromCenterID()
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.
Is there a reason why we are getting rid of the CenterName? When printing in the logs, I think it is more human readable to read the CenterName than an ID referring to a site.
@nicolasbrossard thoughts?
Also, one tiny code change suggested below to make my brain happy ;)
Co-authored-by: Cécile Madjar <cecile.madjar@mcin.ca>
@cmadjar good point I'll fetch the name instead I did it in another class for the Alias, remember? the place that triggered your OCD :p |
@ridz1208 sounds good. Let me know when implemented and I will test it on my MCIN sandbox. In the meantime, I will update my MCIN sandbox so it is ready for testing. Will update to a commit before the CandID refactoring, I am pretty sure that schema change is going to break a lot of things on the MRI pipeline 😨 |
@@ -605,7 +606,7 @@ =head2 Methods | |||
################################################################ | |||
# make final logfile name without overwriting phantom logs ##### | |||
################################################################ | |||
my $final_logfile = $center_name; | |||
my $final_logfile = $mri_alias; |
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.
@nicolasbrossard existential question: why is there MRI alias in the log filename?
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 20 days. |
Someone please check I didnt break everything
please review
getCenterNameFromCenterID
I don't speak this language