Skip to content

[Everything] DIE MRI ALIAS DIE#1227

Open
ridz1208 wants to merge 3 commits into
aces:mainfrom
ridz1208:burn_mri_alias_burn
Open

[Everything] DIE MRI ALIAS DIE#1227
ridz1208 wants to merge 3 commits into
aces:mainfrom
ridz1208:burn_mri_alias_burn

Conversation

@ridz1208
Copy link
Copy Markdown

@ridz1208 ridz1208 commented Feb 7, 2025

Someone please check I didnt break everything

please review getCenterNameFromCenterID I don't speak this language

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 ;)

Comment thread uploadNeuroDB/NeuroDB/MRIProcessingUtility.pm Outdated
Co-authored-by: Cécile Madjar <cecile.madjar@mcin.ca>
@ridz1208
Copy link
Copy Markdown
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
Copy Markdown
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 😨

# make final logfile name without overwriting phantom logs #####
################################################################
my $final_logfile = $center_name;
my $final_logfile = $mri_alias;
Copy link
Copy Markdown
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?

@github-actions
Copy link
Copy Markdown

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
@github-actions github-actions Bot closed this Aug 4, 2025
@cmadjar cmadjar added this to the NA milestone Nov 19, 2025
@hansfauer hansfauer self-requested a review May 8, 2026 15:06
@hansfauer hansfauer self-assigned this May 8, 2026
@ridz1208 ridz1208 reopened this May 8, 2026
@github-actions github-actions Bot added Language: Perl Issue or PR related to the Perl codebase and removed Stale labels May 8, 2026
@cmadjar cmadjar modified the milestones: NA, 29.0.0 May 11, 2026
@MaximeBICMTL
Copy link
Copy Markdown
Contributor

MaximeBICMTL commented May 18, 2026

@ridz1208, while I have no problem merging this PR as-is, do you want to also remove MRI_Alias from the database schema and the Python code?

If so, the following steps should be done:

  1. Open a PR on the main LORIS repo to remove the field from the schema and PHP code.
  2. Remove references to MRI_Alias in the Python code as well.
  3. Rebase this PR on the main branch to benefit from our super very cool improved integration tests (only applies to Python, Perl is still very much untested).

If you want to I can take care of all that (easy work), in this PR or a follow-up one.

@ridz1208
Copy link
Copy Markdown
Author

@MaximeBICMTL

  1. I would refrain from removing it just yet formt he LORIS side, in case projects are using it, I will check first if we need to deprecate it first and remove it next version
  2. good point
  3. good point

@hansfauer may or may not be taking this one over, if he is, I will let him handle the rebase and the pyhton.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: Perl Issue or PR related to the Perl codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants