Skip to content

Commit

Permalink
display mri upload ids
Browse files Browse the repository at this point in the history
use dicom archive id instead of tarchiveid because it is prettier

ruff check
  • Loading branch information
maximemulder committed Feb 15, 2025
1 parent 352e8be commit eca3d51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/lib/dcm2bids_imaging_pipeline_lib/base_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,18 @@ def load_mri_upload_and_dicom_archive(self):
case []:
log_error_exit(
self.env,
f"Did not find an entry in mri_upload associated with 'TarchiveID' {self.dicom_archive.id}",
f"Did not find an entry in mri_upload associated with DICOM archive ID {self.dicom_archive.id}",
lib.exitcode.SELECT_FAILURE,
)
case [mri_upload]:
self.mri_upload = mri_upload
case _:
log_error_exit(
self.env,
f"Found {len(mri_uploads)} rows in mri_upload for 'TarchiveID' {self.dicom_archive.id}",
(
f"Found {len(mri_uploads)} rows in mri_upload for DICOM archive ID {self.dicom_archive.id}."
f" MRI upload IDs are {', '.join(map(lambda mri_upload: str(mri_upload.id), mri_uploads))}."
),
lib.exitcode.SELECT_FAILURE,
)

Expand Down

0 comments on commit eca3d51

Please sign in to comment.