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 Ghosting (and Uniformity) #280

Closed YassineAzma closed 2 years ago

YassineAzma commented 2 years ago

Additional edits

N.B: There is no existing issue for the ACR ghosting test.

github-actions[bot] commented 2 years ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
hazenlib
   HazenTask.py24388%29–31
   __init__.py1473874%135, 139, 149, 154, 191, 198–203, 214, 217–224, 244–246, 264–266, 285–287, 296, 301, 307, 358, 378–380, 388–389, 393
   relaxometry.py3179072%238–256, 630, 689–691, 745, 793–815, 833–848, 1173–1176, 1185–1188, 1200–1213, 1216–1221, 1233–1263
   shapes.py20955%13, 16, 24–29, 32
   snr_map.py108595%403, 408–410, 439
   tools.py82693%43–50, 89
hazenlib/tasks
   ghosting.py1505166%18–32, 47, 109–110, 114, 124–125, 151–153, 170–172, 218–256
   relaxometry.py7271%10–11
   slice_position.py1172182%31, 40–41, 103–104, 130, 210, 217–233
   slice_width.py3565285%34–37, 107, 166–186, 451, 456–457, 463, 468, 530–531, 780–821
   snr.py1634672%62–67, 221–231, 273–277, 314–327, 332–340, 369–382
   snr_map.py770%1–11
   spatial_resolution.py2949069%36–39, 63–121, 134, 219, 255–262, 287, 413–449
   task_acr_ghosting.py1164264%33–53, 91–93, 123–125, 161–194
   task_acr_uniformity.py893264%34–54, 121–138
   uniformity.py781976%42–45, 91–92, 99, 133–147
TOTAL211251376% 

Tests Skipped Failures Errors Time
180 0 :zzz: 0 :x: 0 :fire: 2m 24s :stopwatch:
github-actions[bot] commented 2 years ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
hazenlib
   HazenTask.py24388%29–31
   __init__.py1554472%136, 140, 150, 155, 192, 199–204, 215, 218–225, 245–247, 265–267, 286–288, 297, 302, 308, 359, 379–381, 384–386, 388–390, 398–399, 403
   relaxometry.py3179072%238–256, 630, 689–691, 745, 793–815, 833–848, 1173–1176, 1185–1188, 1200–1213, 1216–1221, 1233–1263
   shapes.py20955%13, 16, 24–29, 32
   snr_map.py108595%403, 408–410, 439
   tools.py82693%43–50, 89
hazenlib/tasks
   ghosting.py1505166%18–32, 47, 109–110, 114, 124–125, 151–153, 170–172, 218–256
   relaxometry.py7271%10–11
   slice_position.py1172182%31, 40–41, 103–104, 130, 210, 217–233
   slice_width.py3565285%34–37, 107, 166–186, 451, 456–457, 463, 468, 530–531, 780–821
   snr.py1634672%62–67, 221–231, 273–277, 314–327, 332–340, 369–382
   snr_map.py770%1–11
   spatial_resolution.py2949069%36–39, 63–121, 134, 219, 255–262, 287, 413–449
   task_acr_ghosting.py1164264%31–51, 89–91, 121–123, 159–192
   task_acr_uniformity.py893264%16–36, 103–120
   uniformity.py781976%42–45, 91–92, 99, 133–147
TOTAL212051976% 

Tests Skipped Failures Errors Time
180 0 :zzz: 0 :x: 0 :fire: 2m 4s :stopwatch:
YassineAzma commented 2 years ago

@Lucrezia-Cester Do you know what this acr_snr CLI function that keeps failing is? I didn't include that, so I have no idea.

Edit: I've went through Laurence's pull request for the HazenTask refactoring and it seems to be what he renamed the acr_uniformity task to. I'll delete it.

Lucrezia-Cester commented 2 years ago

Hi @YassineRMH thank you so much for fixing that, I'll check the uniformity script and then approve this PR soon

Lucrezia-Cester commented 2 years ago

Hi @YassineRMH, by the way, feel free to add issues, and in general it would be best to separate different tasks in different PRs, in this case, ghosting from uniformity

YassineAzma commented 2 years ago

Hi @YassineRMH, by the way, feel free to add issues, and in general it would be best to separate different tasks in different PRs, in this case, ghosting from uniformity

Will do.

Lucrezia-Cester commented 2 years ago

Hi @YassineRMH, before I merge, would it be possible for you to add the docstirng for the unifromity script the same way you did for the ghosting? I am keen to keep track of sources.

YassineAzma commented 2 years ago

@Lucrezia-Cester Potentially stupid question, but what do you mean by docstring?

Edit: Done.

Lucrezia-Cester commented 2 years ago

Hi @YassineRMH, is there a link to the ACR guidance?

YassineAzma commented 2 years ago

@Lucrezia-Cester Do you want me to include a link to the guidance in my docstrings?

If not, it's here:

https://www.acraccreditation.org/-/media/acraccreditation/documents/mri/largephantomguidance.pdf

Lucrezia-Cester commented 2 years ago

Hi @YassineRMH, i just added it, I'll merge now

YassineAzma commented 2 years ago

@Lucrezia-Cester One last thing, I was trying to edit this before you merged:

On line 6 in the task_acr_ghosting.py script, could you please change uniformity to percent-signal ghosting. I can also make a separate pull request for this, but it seems very overkill.

Lucrezia-Cester commented 2 years ago

Hi @YassineRMH, apologies for not waiting for this edit. Will change it myself.

YassineAzma commented 2 years ago

@Lucrezia-Cester Thanks for all your help. đź‘Ť