torchio
torchio copied to clipboard
Implement missing restore feature for RandomGhosting
trafficstars
Fixes #1196.
Description
As reported by @sravan953, the restore argument in RandomGhosting is unused. This PR addresses this issue.
Checklist
- [x] I have read the
CONTRIBUTINGdocs and have a developer setup (especially important arepre-commitandpytest) - [x] Non-breaking change (would not break existing functionality)
- [ ] Breaking change (would cause existing functionality to change)
- [ ] Tests added or modified to cover the changes
- [ ] Integration tests passed locally by running
pytest - [x] In-line docstrings updated
- [ ] Documentation updated, tested running
make htmlinside thedocs/folder - [ ] This pull request is ready to be reviewed