aces / Loris-MRI

The set of scripts that preprocess and insert MRI data into the database.
10 stars 51 forks source link

Use the center ID instead of the center name to identify scans #1043

Closed nicolasbrossard closed 6 months ago

nicolasbrossard commented 7 months ago

Function identify_scan_db uses an SQL statement that relies on the center ID to identify a scan. This center ID is passed as an argument to this function. Unfortunately, current calls to that function pass the center name instead of the center ID...This PR corrects all these invalid calls.

To test: ensure that there's a line in your mri_protocol table with a non-null CenterID and validate that it's taken into account when identifying a scan.