Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

360 refactor relaxometry #362

Merged
merged 18 commits into from
Jul 28, 2023
Merged

360 refactor relaxometry #362

merged 18 commits into from
Jul 28, 2023

Conversation

sophie22
Copy link
Collaborator

part 1: simplify existing functions and make them more explicit

@github-actions
Copy link

github-actions bot commented Jul 26, 2023

Coverage

Coverage Report
FileStmtsMissCoverMissing
hazenlib
   HazenTask.py26388%32–34
   __init__.py541769%125–133, 145, 179–181, 184–186, 193–196, 207
   exceptions.py21481%17–21
   relaxometry.py2868670%182–200, 377, 423–425, 492, 566–588, 606–621, 1037–1040, 1046–1052, 1085–1130
   utils.py1894377%61, 65, 75, 80, 117, 124–129, 140, 143–150, 170–172, 190–192, 211–213, 222, 227, 233, 284, 287, 295–300, 303, 346, 355, 371
hazenlib/tasks
   acr_geometric_accuracy.py1465662%38–75, 179–195, 209–233
   acr_ghosting.py1174363%33–55, 93–95, 125–127, 163–196
   acr_slice_position.py1555465%53–76, 154, 215–260
   acr_slice_thickness.py1546458%40–62, 188–243
   acr_snr.py1416256%34–78, 103, 172–182, 215–228, 261–274
   acr_spatial_resolution.py2447470%66–90, 169, 212, 225–234, 323–378
   acr_uniformity.py903363%34–56, 123–140
   ghosting.py1525365%18–35, 50, 112–113, 117, 127–128, 154–156, 173–175, 221–259
   relaxometry.py770%1–11
   slice_position.py1172380%28, 37–38, 49, 103–104, 130, 210, 217–234
   slice_width.py3605385%34–37, 41, 109, 168–188, 453, 458–459, 465, 470, 532–533, 782–823
   snr.py1666760%51, 68–73, 167–185, 200–209, 227–237, 264–274, 279–289, 320–333, 338–346, 375–388
   snr_map.py104199%291
   spatial_resolution.py2484582%36–39, 43, 64, 149, 208, 334–370
   uniformity.py792075%42–45, 51, 93–94, 101, 135–149
TOTAL288180872% 

Tests Skipped Failures Errors Time
215 0 💤 0 ❌ 0 🔥 3m 2s ⏱️

@sophie22
Copy link
Collaborator Author

Part 1: simplification and adjusting unit tests is COMPLETE

TODO: consider adding back time_attribute to be an object attribute so it doesn't have to be passed each time, especially in the unit tests.

@tomaroberts tomaroberts self-assigned this Jul 27, 2023
Copy link
Collaborator

@tomaroberts tomaroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good – I've made a minor change to the filename. "config" is quite a loaded programming term in repos, normally indicates a file responsible for controlling parameters that you might want to adjust/not hard-code. Given the config.py was just predominantly parameters for the relaxometry Task, I've just updated the filename to reflect that.

@tomaroberts tomaroberts merged commit 561a7ac into main Jul 28, 2023
@sophie22
Copy link
Collaborator Author

I was planning to move other parameters like ROI sizes and default/template values used in other tasks to the config file, but can still rename this file later if the move does happen.

@sophie22
Copy link
Collaborator Author

sophie22 commented Aug 1, 2023

I have 4 more commits that ended up not being pushed, I apologise. Will open a new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants