GSTT-CSC / hazen

Quality assurance framework for Magnetic Resonance Imaging
https://github.com/GSTT-CSC/hazen
Apache License 2.0
22 stars 12 forks source link

ACR Slice Thickness Functionality #321

Closed YassineAzma closed 1 year ago

YassineAzma commented 1 year ago

Adds an ACR Slice Thickness script and associated unit tests that calculates the slice thickness of the ACR phantom for slice 1. This is done within the new HazenTask framework. The methodology is as follows:

The results are visualised in the report. Examples are shown below: image image

github-actions[bot] commented 1 year ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
hazenlib
   HazenTask.py25388%32–34
   __init__.py1514173%141, 145, 155, 160, 197, 204–209, 220, 223–230, 250–252, 270–272, 291–293, 302, 307, 313, 363, 374, 380–386, 400–401, 405
   exceptions.py21481%17–21
   relaxometry.py3179072%238–256, 631, 690–692, 746, 794–816, 834–849, 1174–1177, 1186–1189, 1201–1214, 1217–1222, 1233–1263
   shapes.py20955%13, 16, 24–29, 32
   tools.py84890%43–50, 92, 101, 117
hazenlib/tasks
   acr_geometric_accuracy.py1455562%38–72, 176–192, 206–230
   acr_ghosting.py1164264%33–53, 91–93, 123–125, 161–194
   acr_slice_position.py1545366%53–74, 152, 213–258
   acr_slice_thickness.py1536359%40–60, 186–241
   acr_snr.py1375858%34–71, 96, 165–175, 208–221, 254–267
   acr_spatial_resolution.py2427270%66–86, 165, 208, 221–230, 319–374
   acr_uniformity.py893264%34–54, 121–138
   ghosting.py1505166%18–32, 47, 109–110, 114, 124–125, 151–153, 170–172, 218–256
   relaxometry.py7271%10–11
   slice_position.py1182281%31, 40–41, 103–104, 130, 210, 217–234
   slice_width.py3565285%34–37, 107, 166–186, 451, 456–457, 463, 468, 530–531, 780–821
   snr.py1636660%62–67, 161–179, 194–203, 221–231, 258–268, 273–283, 314–327, 332–340, 369–382
   snr_map.py106199%294
   spatial_resolution.py2464482%36–39, 62, 147, 206, 332–368
   uniformity.py781976%42–45, 91–92, 99, 133–147
TOTAL289478773% 

Tests Skipped Failures Errors Time
219 0 :zzz: 0 :x: 0 :fire: 2m 34s :stopwatch:
YassineAzma commented 1 year ago

Hi, @Lucrezia-Cester. This PR is ready for review whenever you're available.