Closed laurencejackson closed 2 years ago
Coverage Report
File Stmts Miss Cover Missing hazenlib HazenTask.py 21 3 86% 25–27 init.py 145 36 75% 137, 141, 151, 156, 193, 200–205, 216, 219–226, 246–248, 266–268, 287–289, 298, 303, 309, 339, 362, 382–383, 387 acr_uniformity.py 92 39 58% 91–107, 114–143, 147 relaxometry.py 317 90 72% 238–256, 630, 689–691, 745, 793–815, 833–848, 1173–1176, 1185–1188, 1200–1213, 1216–1221, 1233–1263 shapes.py 20 9 55% 13, 16, 24–29, 32 snr_map.py 108 5 95% 403, 408–410, 440 tools.py 82 6 93% 43–50, 89 hazenlib/tasks ghosting.py 147 48 67% 18–29, 44, 106–107, 111, 121–122, 148–150, 167–169, 215–248 relaxometry.py 7 2 71% 10–11 slice_position.py 115 19 83% 31, 40–41, 101–102, 128, 208, 215–228 slice_width.py 354 48 86% 33–36, 106, 165–183, 448, 453–454, 460, 465, 527–528, 777–816 snr.py 157 42 73% 59–64, 218–228, 270–274, 311–322, 327–335, 364–375 spatial_resolution.py 291 88 70% 35–38, 60–118, 131, 216, 252–259, 284, 410–444 uniformity.py 74 17 77% 42–45, 89–90, 97, 131–143 TOTAL 1967 452 77%
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
176 | 0 :zzz: | 0 :x: | 0 :fire: | 2m 36s :stopwatch: |
@tomaroberts ready for review.
To install in your venv
pip install git+https://github.com/GSTT-CSC/hazen@object-orientated-hazenlib#egg=hazen
The line we'll add to the webapp requirements.txt (until this branch becomes main when relaxometry snr_map etc are converted)
pip install git+https://github.com/GSTT-CSC/hazen@webapp-core-tasks#egg=hazen
This PR converts all the core tasks used by GSTT MRI physics into classes to facilitate integration with the hazen webapp.
All tasks inherit from HazenTask, take a list of paths to dicoms as input, have a run method for processing data, and return the results as a dictionary defined by tags in the dicom input.