Skip to content

4587 mri transforms#4591

Merged
wyli merged 82 commits intoProject-MONAI:devfrom
mersad95zd:4587-mri-transforms
Jul 19, 2022
Merged

4587 mri transforms#4591
wyli merged 82 commits intoProject-MONAI:devfrom
mersad95zd:4587-mri-transforms

Conversation

@mersad95zd
Copy link
Copy Markdown
Collaborator

Fixes # .

Description

MRI transforms as a new feature:

  • mri_transforms.py under monai.apps.reconstruction
  • its unittest under tests
  • its docs under transforms.rst/VanillaTransforms/MRITransforms

Status

Work in progress

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

mersad95zd and others added 22 commits June 21, 2022 07:45
Signed-off-by: mersad95zd <[email protected]>
@mersad95zd
Copy link
Copy Markdown
Collaborator Author

I'm working on the failed tests, you may review the next commit, thanks!

@mersad95zd mersad95zd marked this pull request as draft July 13, 2022 15:28
@rijobro
Copy link
Copy Markdown
Contributor

rijobro commented Jul 14, 2022

RandomKspaceMaskd and EquispacedKspaceMaskd are identical except for self.masker. You could have a parent class that stores all of the functionality and then RandomKspaceMaskd and EquispacedKspaceMaskd only need to create self.masker in the __init__.

@mersad95zd
Copy link
Copy Markdown
Collaborator Author

RandomKspaceMaskd and EquispacedKspaceMaskd are identical except for self.masker. You could have a parent class that stores all of the functionality and then RandomKspaceMaskd and EquispacedKspaceMaskd only need to create self.masker in the __init__.

Would it be ok to just create RandomKspaceMaskd, then inherit from it in EquispacedKspaceMaskd?
By doing so, we won't need to define KspaceMaskd.
Another issue with creating KspaceMaskd would be instantiating self.masker in its __init__ because the abstract class KspaceMask can't be instantiated as a self.masker.
So directly defining RandomKspaceMaskd solves this as well.

Signed-off-by: mersad95zd <[email protected]>
Signed-off-by: mersad95zd <[email protected]>
@mersad95zd
Copy link
Copy Markdown
Collaborator Author

Since this PR already has about 700 lines of code, I'll submit dictionary unit tests in my next PR.

@mersad95zd mersad95zd marked this pull request as ready for review July 14, 2022 23:23
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Jul 19, 2022

/build

@wyli wyli enabled auto-merge (squash) July 19, 2022 11:05
@wyli wyli merged commit 9fb9d98 into Project-MONAI:dev Jul 19, 2022
@mersad95zd mersad95zd deleted the 4587-mri-transforms branch July 27, 2022 14:38
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.

5 participants