Skip to content

[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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ridz1208
Copy link

@ridz1208 ridz1208 commented Feb 7, 2025

Someone please check I didnt break everything

please review getCenterNameFromCenterID I don't speak this language

Copy link
Contributor

@maximemulder maximemulder left a 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 {
Copy link
Contributor

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.

Copy link
Author

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()

Copy link
Collaborator

@cmadjar cmadjar left a 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>
@ridz1208
Copy link
Author

ridz1208 commented Feb 13, 2025

@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

@cmadjar
Copy link
Collaborator

cmadjar commented Feb 13, 2025

@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;
Copy link
Collaborator

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?

Copy link

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.

@github-actions github-actions bot added the Stale label Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants